rc.local: added rc-local.service to support legacy rc.local script
This commit is contained in:
parent
084a862efd
commit
0e9962e47a
2
Makefile
2
Makefile
@ -62,6 +62,7 @@ install-dirs:
|
|||||||
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/run
|
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/run
|
||||||
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/log
|
$(INSTALL_DIR) $(DESTDIR)$(localstatedir)/log
|
||||||
$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/modules.d/
|
$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/modules.d/
|
||||||
|
$(INSTALL_DIR) $(DESTDIR)/lib/systemd/system/
|
||||||
$(INSTALL_DIR) $(DESTDIR)/var/spool/gdm
|
$(INSTALL_DIR) $(DESTDIR)/var/spool/gdm
|
||||||
|
|
||||||
install-files:
|
install-files:
|
||||||
@ -69,6 +70,7 @@ install-files:
|
|||||||
touch $(DESTDIR)$(localstatedir)/log/{btmp,lastlog,wtmp}
|
touch $(DESTDIR)$(localstatedir)/log/{btmp,lastlog,wtmp}
|
||||||
cp -a etc lib var $(DESTDIR)
|
cp -a etc lib var $(DESTDIR)
|
||||||
$(INSTALL_SCRIPT) sbin/* $(DESTDIR)/sbin
|
$(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\
|
for i in `seq 0 6`; do\
|
||||||
ln -sf rc.d/rc$$i.d/ $(DESTDIR)$(sysconfdir)/rc$$i.d;\
|
ln -sf rc.d/rc$$i.d/ $(DESTDIR)$(sysconfdir)/rc$$i.d;\
|
||||||
done
|
done
|
||||||
|
10
systemd/rc-local.service
Normal file
10
systemd/rc-local.service
Normal 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
|
Loading…
Reference in New Issue
Block a user