rc.local Fedora 23 server

rc.local file miss on Fedora 23. It was removed long time ago, I think during sysV to systemd migration of Fedora. Now there is systemd service rc-local which needs to be started in order to apply stuff from /etc/rc.d/rc.local
Process to get rc.local semi “old way” is as showed below

  • prepare /etc/rc.d/rc.local as before – adding there stuff to be executed after system boots – do not forget to make /etc/rc.d/rc.local executable

Start rc-local service

# systemctl start rc-local ; systemctl enable rc-local

No need to create /etc/systemd/system/rc-local.service as there is already systemd file for rc-local.service delivered as part of systemd package.

# pwd
/usr/lib/systemd/system
# rpm -qf rc-local.service 
systemd-229-1.fc24.x86_64
Advertisements

#fedora-2, #fedora23, #rc-local