Sujet : Re: Shutdown - 25 Years Later
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.advocacyDate : 19. Apr 2025, 23:30:51
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vu186r$2d0f6$3@dont-email.me>
References : 1 2
User-Agent : Pan/0.162 (Pokrosvk)
On Fri, 18 Apr 2025 12:27:25 +0200, Marc Haber wrote:
Surprisingly, in Debian the shutdown binary is in the systemd-sysv
package and will thus vanish as soon as we¹ eventually get rid of the
last init script, but I am pretty sure that shutdown nowadays just
issues a command to systemd like the appropriate systemctl reboot or
systemctl halt.
>
Unfortunately, systemd doesn't offer a native equivalent to a timed
shutdown, so one has to do an arcane construct involving systemd-run and
a transient unit to achive that, but that's just the way things are. Not
everything around systemd is good.
root@theon:~ # ls -l /usr/sbin/shutdown
lrwxrwxrwx 1 root root 16 Mar 14 04:25 /usr/sbin/shutdown -> ../bin/systemctl
root@theon:~ # dpkg-query -S /usr/sbin/shutdown
systemd-sysv: /usr/sbin/shutdown
So ... nothing but a symlink. But doesn’t it fully support the usual
shutdown options, including delay?