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

rc.local and systemd



Hello,

I have a jessie system here on which /etc/rc.local is not executed. 
/etc/rc.local is executable

root@nanette:~# ls -l /etc/rc.local
-rwxr-xr-x 1 root root 328 Jan 31 15:34 /etc/rc.local
root@nanette:~# 

Before the jessie upgrade, it was executed properly during startup

root@nanette:~# ls -l /etc/rc*.d/*rc*
lrwxrwxrwx 1 root root 18 Dec  5  2012 /etc/rc2.d/S24rc.local -> 
../init.d/rc.local
lrwxrwxrwx 1 root root 18 Dec  5  2012 /etc/rc3.d/S24rc.local -> 
../init.d/rc.local
lrwxrwxrwx 1 root root 18 Dec  5  2012 /etc/rc4.d/S24rc.local -> 
../init.d/rc.local
lrwxrwxrwx 1 root root 18 Dec  5  2012 /etc/rc5.d/S24rc.local -> 
../init.d/rc.local
root@nanette:~# 

Is that expected?

Is 

cd /lib/systemd/system/multi-user.target.wants
ln -s ../rc-local.service rc-local.service

the proper way to enable it using systemd?

Thanks
Rainer


Reply to: