:: Re: [DNG] rc.local removed from Deb…
Góra strony
Delete this message
Reply to this message
Autor: Arnt Karlsen
Data:  
Dla: dng
Temat: Re: [DNG] rc.local removed from Debian 9, rly?
On Sun, 19 Nov 2017 18:52:13 +0100, Didier wrote in message
<e9d16729-5c83-da1a-0178-820c5f6780aa@???>:

> Le 19/11/2017 à 15:10, Jaromil a écrit :
> > hi all
> >
> > Can anyone clarify how /etc/rc.local is being removed in Debian 9?
> >
>
>     Dunno how difficult it is to re-create rc.local functionality
> under Systemd dictature, but, when init is sysvinit, this doesn't
> look like a diffcult problem. Therefore, don't care (-:
>
>         Didier


..looks like we are _the_ /etc/rc.local back-up distro. ;o)

..I did a wee razzia, it's been quietly gone for quite a while,
maybe since the 2014 systemd coup in Debian:
rir:~# dpkg -S /etc/rc.local
dpkg-query: no path found matching pattern /etc/rc.local
rir:~# ll /etc/rc.local
-rwxr-xr-x 1 root root 306 Jun 6 2012 /etc/rc.local
rir:~# cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

exit 0
rir:~#

..<snip 4 ditto boxes>.

..found it on a live usb in a laptop with a broken screen:
arnt@d44:~$ ssh -Y root@192.168.1.146
Password:
[root@localhost ~]# dpkg -S /etc/rc.local
-bash: dpkg: command not found
[root@localhost etc]# uptime
20:10:18 up 195 days, 8:06, 2 users, load average: 0.31, 0.09, 0.03
[root@localhost ~]# mc
[root@localhost etc]# man rpm
[root@localhost etc]# rpm -qf /etc/rc.local
initscripts-9.25-19pclos2014
[root@localhost etc]#

..we have _some_ competition... ;o)

--
..med vennlig hilsen = with Kind Regards from Arnt Karlsen
...with a number of polar bear hunters in his ancestry...
Scenarios always come in sets of three:
best case, worst case, and just in case.