rc.local: added rc-local.service to support legacy rc.local script

This commit is contained in:
Silvan Calarco 2013-09-12 00:20:25 +02:00
parent 084a862efd
commit 0e9962e47a
2 changed files with 12 additions and 0 deletions

View File

@ -62,6 +62,7 @@ install-dirs:
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/run
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/log
$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/modules.d/
$(INSTALL_DIR) $(DESTDIR)/lib/systemd/system/
$(INSTALL_DIR) $(DESTDIR)/var/spool/gdm
install-files:
@ -69,6 +70,7 @@ install-files:
touch $(DESTDIR)$(localstatedir)/log/{btmp,lastlog,wtmp}
cp -a etc lib var $(DESTDIR)
$(INSTALL_SCRIPT) sbin/* $(DESTDIR)/sbin
$(INSTALL_DATA) systemd/rc-local.service $(DESTDIR)/lib/systemd/system/rc-local.service
for i in `seq 0 6`; do\
ln -sf rc.d/rc$$i.d/ $(DESTDIR)$(sysconfdir)/rc$$i.d;\
done

10
systemd/rc-local.service Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=/etc/rc.local compatibility
[Service]
Type=oneshot
ExecStart=/etc/rc.d/init.d/rc.local
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target