From 930160fd0e007dff823a5bbc3a6ab1995936e2f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Tue, 29 Nov 2011 17:43:05 +0000 Subject: [PATCH] - add rc-local.service Changed files: rc-local.service -> 1.1 rc-scripts.spec -> 1.374 --- rc-local.service | 18 ++++++++++++++++++ rc-scripts.spec | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 rc-local.service diff --git a/rc-local.service b/rc-local.service new file mode 100644 index 0000000..c116829 --- /dev/null +++ b/rc-local.service @@ -0,0 +1,18 @@ +# This file is part of systemd. +# +# systemd is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +[Unit] +Description=/etc/rc.d/rc.local Compatibility +ConditionFileIsExecutable=/etc/rc.d/rc.local + +[Service] +Type=forking +ExecStart=/etc/rc.d/rc.local start +TimeoutSec=0 +StandardOutput=tty +RemainAfterExit=yes +SysVStartPriority=99 diff --git a/rc-scripts.spec b/rc-scripts.spec index 846de54..c71d78f 100644 --- a/rc-scripts.spec +++ b/rc-scripts.spec @@ -15,6 +15,7 @@ Group: Base Source0: ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.gz # Source0-md5: 00d0cbd7bb54c89fed07ebce20a4a0b7 Source1: rc-scripts-systemd-tmpfiles.d.conf +Source2: rc-local.service URL: http://svn.pld-linux.org/trac/svn/wiki/packages/rc-scripts Patch0: %{name}-svn.patch BuildRequires: autoconf @@ -182,7 +183,9 @@ done # make /etc/init.d symlink relative ln -nfs rc.d/init.d $RPM_BUILD_ROOT/etc/init.d +# systemd install -D %{SOURCE1} $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/rc-scripts.conf +install -D %{SOURCE2} $RPM_BUILD_ROOT/lib/systemd/system/rc-local.service %if "%{pld_release}" == "ac" rm -rf $RPM_BUILD_ROOT/etc/init @@ -305,6 +308,7 @@ mv -f /etc/sysconfig/network-scripts/ifcfg-* /etc/sysconfig/interfaces %attr(755,root,root) /lib/firmware/firmware-loader.sh /usr/lib/tmpfiles.d/rc-scripts.conf +/lib/systemd/system/rc-local.service %dir /lib/rc-scripts %attr(755,root,root) /lib/rc-scripts/ifdown-br -- 2.44.0