[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Stretch to Buster with sysvinit



On Tue 17 Sep 2019 at 09:45:21 (-0400), Greg Wooledge wrote:
> On Tue, Sep 17, 2019 at 09:40:50AM -0400, The Wanderer wrote:
> > I believe its name was chosen with
> > insufficient consideration, and is not in fact derived from its
> > function.
> 
> You're not looking closely enough.
> 
> > $ apt-file show systemd-sysv
> > systemd-sysv: /sbin/halt
> > systemd-sysv: /sbin/init
> > systemd-sysv: /sbin/poweroff
> > systemd-sysv: /sbin/reboot
> > systemd-sysv: /sbin/runlevel
> > systemd-sysv: /sbin/shutdown
> > systemd-sysv: /sbin/telinit
> 
> > Unless installing systemd (via non-Debian-packaged means) doesn't
> > normally / necessarily provide some/all of those binaries, [...]
> 
> Binaries?  What binaries?
> 
> wooledg:~$ ls -ld /sbin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit}
> lrwxrwxrwx 1 root root 14 Aug 20 07:50 /sbin/halt -> /bin/systemctl
> lrwxrwxrwx 1 root root 20 Aug 20 07:50 /sbin/init -> /lib/systemd/systemd
> lrwxrwxrwx 1 root root 14 Aug 20 07:50 /sbin/poweroff -> /bin/systemctl
> lrwxrwxrwx 1 root root 14 Aug 20 07:50 /sbin/reboot -> /bin/systemctl
> lrwxrwxrwx 1 root root 14 Aug 20 07:50 /sbin/runlevel -> /bin/systemctl
> lrwxrwxrwx 1 root root 14 Aug 20 07:50 /sbin/shutdown -> /bin/systemctl
> lrwxrwxrwx 1 root root 14 Aug 20 07:50 /sbin/telinit -> /bin/systemctl
> 
> systemd-sysv is, as advertised, a package that provides a bunch of
> symlinks to replace the core sysvinit commands.
> 
>  .
>  This package provides the manual pages and links needed for systemd
>  to replace sysvinit. Installing systemd-sysv will overwrite /sbin/init with a
>  link to systemd.
> 
> Seems fairly truthful.

Well, the only link *needed* is init, hence its dependency on package
init, whose sole function is to keep the number of init configurations
more than zero and less than two.

The rest of those links just mean that I can read, say, a 60 line man
page for shutdown instead of the 1270 lines of man systemctl.

So it does seem odd to name the package after some links of
convenience rather than its prime function of associating systemd
(/lib/systemd/systemd) with /sbin/init.

Cheers,
David.


Reply to: