[Shutdown] Commande shutdown : pas de timer (résolu)

Applications, problèmes de configuration réseau
Avatar de l’utilisateur
nemon
Daikyu
Messages : 81
Inscription : lun. 17 nov. 2014, 18:14

[Shutdown] Commande shutdown : pas de timer (résolu)

Message par nemon »

Salut,

Pour retarder l'extinction de ma/mes machine(s) j'utilise depuis longtemps cette commande :

Code : Tout sélectionner

shutdown -h 01:00
Depuis 2 jours, cette commande ne prend plus en compte le timer éteint le PC directement.

Suis-je le seul à avoir le problème ?
Dernière modification par nemon le ven. 25 sept. 2015, 13:05, modifié 2 fois.
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17632
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [Shutdown] Commande shutdown : pas de timer

Message par benjarobin »

Bonjour,
La syntaxe de ta commande n'est pas la bonne, en tout cas pas pour décaler l'extinction dans 1 heure, ta commande est censé éteindre le PC à 1h du matin. Mais en effet ce que tu observes est anormal.

Édit : je peux reproduire le problème

Code : Tout sélectionner

15:16:21 ben su[14616]: (to root) benjarobin on pts/6
15:16:21 ben su[14616]: pam_unix(su-l:session): session opened for user root by benjarobin(uid=1000)
15:16:29 ben kernel: systemd-logind[690]: segfault at 561979000008 ip 00007f300cb770ca sp 00007ffc6b6cd0e8 error 4 in libc-2.22.so[7f300caf6000+19b000]
15:16:29 ben dbus[700]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service'
15:16:29 ben systemd[1]: Started Login Service.
15:16:29 ben systemd-coredump[14659]: Process 690 (systemd-logind) of user 0 dumped core.
15:16:29 ben dbus[700]: [system] Successfully activated service 'org.freedesktop.login1'
15:16:29 ben systemd[1]: systemd-logind.service: Main process exited, code=dumped, status=11/SEGV
15:16:29 ben systemd[1]: systemd-logind.service: Unit entered failed state.
15:16:29 ben systemd[1]: systemd-logind.service: Failed with result 'core-dump'.
15:16:29 ben systemd[1]: systemd-logind.service: Service has no hold-off time, scheduling restart.
15:16:29 ben systemd[1]: Stopped Login Service.
15:16:29 ben systemd[1]: Starting Login Service...
15:16:29 ben systemd[1]: Started Login Service.
15:16:29 ben systemd-logind[14661]: New seat seat0.
15:16:29 ben systemd-logind[14661]: Watching system buttons on /dev/input/event2 (Power Button)
15:16:29 ben systemd-logind[14661]: Watching system buttons on /dev/input/event3 (Video Bus)
15:16:29 ben systemd-logind[14661]: Watching system buttons on /dev/input/event1 (Lid Switch)
15:16:29 ben systemd-logind[14661]: Watching system buttons on /dev/input/event0 (Sleep Button)
15:16:29 ben systemd-logind[14661]: New session c1 of user sddm.
15:16:29 ben systemd-logind[14661]: New session c2 of user benjarobin.
15:16:29 ben systemd-logind[14661]: Assertion 's' failed at src/basic/util.c:1520, function cescape(). Aborting.
15:16:29 ben NetworkManager[1771]: <warn>  Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)
15:16:29 ben kdeinit5[6110]: The session is not registered with logind "Message did not receive a reply (timeout by message bus)"
15:16:29 ben dbus[700]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service'
15:16:29 ben kdeinit5[4654]: powerdevil: The session is not registered with systemd
15:16:29 ben polkitd[2476]: Registered Authentication Agent for unix-process:14658:1575719 (system bus name :1.53 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale fr_FR.UTF-8)
15:16:29 ben systemd[1]: Started Login Service.
15:16:29 ben systemd-coredump[14663]: Process 14661 (systemd-logind) of user 0 dumped core.
15:16:30 ben kernel: wlan0: deauthenticating from 72:6a:85:4b:42:8c by local choice (Reason: 3=DEAUTH_LEAVING)
15:16:31 ben kernel: cfg80211: Exceeded CRDA call max attempts. Not calling CRDA
15:16:30 ben dbus[700]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
15:16:30 ben systemd[1]: systemd-logind.service: Main process exited, code=dumped, status=6/ABRT
15:16:30 ben NetworkManager[1771]: <warn>  Connection disconnected (reason -3)
15:16:30 ben systemd[1]: Stopped Login Service.
https://bbs.archlinux.org/viewtopic.php?id=202018 / https://github.com/systemd/systemd/issues/1120
Déjà corrigé, mais il va falloir attendre la mise à jour...
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Xorg
Maître du Kyudo
Messages : 1933
Inscription : dim. 22 janv. 2012, 19:25
Localisation : Entre le clavier et la chaise.

Re: [Shutdown] Commande shutdown : pas de timer

Message par Xorg »

Un sleep 3600 && poweroff est un peu moins propre, mais je suppose que ça peut te dépanner le temps que la mise à jour arrive. :?
Arch Linux x86_64 - Sway
AMD Ryzen 5 3600X - 32 Go de DDR4 - SSD NVMe 1 To + SSD SATA 250 Go - Sapphire NITRO+ Radeon RX 580
Image AUR___Image Wiki___Image GitHub
Avatar de l’utilisateur
nemon
Daikyu
Messages : 81
Inscription : lun. 17 nov. 2014, 18:14

Re: [Shutdown] Commande shutdown : pas de timer

Message par nemon »

Ok ok merci à vous deux pour les infos. Je vais donc attendre la màj.

Avec poweroff ou halt de systemd, c'est dommage qu'on ne puisse pas passer de timer en argument. C 'est pour cela que j'utilise shutdown.

Pour info, j'utilise un script avec cette commande pour toujours couper le PC pendant la nuit (je ne suis pas toujours à coté) :D
Avatar de l’utilisateur
nemon
Daikyu
Messages : 81
Inscription : lun. 17 nov. 2014, 18:14

Re: [Shutdown] Commande shutdown : pas de timer (en attente)

Message par nemon »

Bug corrigé ! Ça fait du bien !

Merci
Répondre