Le 19/11/2017 à 20:32, Arnt Karlsen a écrit :
On Sun, 19 Nov 2017 18:52:13 +0100, Didier wrote in message
<[email protected]>:
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 [email protected]
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)
~$ apt-file search /etc/rc.local
fai-doc: /usr/share/doc/fai-doc/examples/simple/files/etc/rc.local/FAISERVER
~$ apt-file search init.d/rc.local
initscripts: /etc/init.d/rc.local
Conclusion: initscripts profides the infrastructure to invoke
/etc/rc.local if it exists, but it doesn't provide an empty /etc/rc.local.
Didier
_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng