From 0e9962e47a411155a0ec5f5ff806d24a5c17298a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 12 Sep 2013 00:20:25 +0200 Subject: [PATCH] rc.local: added rc-local.service to support legacy rc.local script --- Makefile | 2 ++ systemd/rc-local.service | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 systemd/rc-local.service diff --git a/Makefile b/Makefile index 0f14de3..1fee520 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/systemd/rc-local.service b/systemd/rc-local.service new file mode 100644 index 0000000..c61d589 --- /dev/null +++ b/systemd/rc-local.service @@ -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