:: Re: [DNG] rc.local removed from Deb…
Top Page
Delete this message
Reply to this message
Author: John Hughes
Date:  
To: dng
Subject: Re: [DNG] rc.local removed from Debian 9, rly?
On 21/11/17 11:58, Olaf Meeuwissen wrote:
> A quick check of the packages that would pull [ initscripts ] in (as per massaged
> `apt-cache rdepends`) on Stretch gives:
>
>    $ apt-cache rdepends initscripts | sed -n '/^ /p' | while read pkg; do \
>      echo $pkg ; apt-cache depends $pkg | grep initscripts; done \
>      | sed -n '/^[^ ]/{ H; N; /Depends/P }'
>    sysvinit-core


Aha.  My systems have mostly been upgraded from Jessie -- I guess that's
why they have initscripts installed, it seems nothing else would force
them to have it.

So, it seems to me that the actual state of /etc/rc.local in Debian 9 is:

If you have the initscripts package installed then /etc/rc.local will be
created for you (if it doesn't exist) and it will be run (if you are
using sysvinit or systemd at least).

If you don't install initscripts (i.e. if you're using systemd and you
don't explicitly install it or something that depends on it) then
/etc/rc.local will not be created for you, but will be automatically run
if it does exist (and is executable).

I'll be installing some new Stretch systems later this week, if I find
anything different I'll get back to the list.