Dans la continuité de ce qui a été évoqué dans cette discussion.

J'ai une tâche Cron qui permet d'éteindre le PC à une heure précise, et qui fonctionnait très bien avant la passage à systemd.
Code : Tout sélectionner
crontab -l
#Extinction des feux
35 23 * * 1,2,3,4,5 shutdown -h now
Un extrait de mon fichier sudoers
Code : Tout sélectionner
##
## Cmnd alias specification
##
## Groups of commands. Often used to group related commands together.
# Cmnd_Alias PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
# /usr/bin/pkill, /usr/bin/top
Cmnd_Alias POWER_CMD = /sbin/shutdown -h now,/sbin/reboot,/sbin/halt -p,/sbin/poweroff,/sbin/reboot
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL) ALL
%power ALL=(ALL) NOPASSWD: POWER_CMD

Un idée ?