aboutsummaryrefslogtreecommitdiffstats
path: root/initscripts.spec
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2010-10-05 12:36:37 +0200
committerHarald Hoyer <harald@redhat.com>2010-10-05 12:39:38 +0200
commitf280984f691e0c3cbca2b31dad7a32a5c66ab51b (patch)
tree1a016c641eb457debaa442b15530dc2ac05d3bb5 /initscripts.spec
parente2e47f96940b9ba91e8b14af2c8f3fea50879592 (diff)
downloadinitscripts-f280984f691e0c3cbca2b31dad7a32a5c66ab51b.tar
initscripts-f280984f691e0c3cbca2b31dad7a32a5c66ab51b.tar.gz
initscripts-f280984f691e0c3cbca2b31dad7a32a5c66ab51b.tar.bz2
initscripts-f280984f691e0c3cbca2b31dad7a32a5c66ab51b.tar.xz
initscripts-f280984f691e0c3cbca2b31dad7a32a5c66ab51b.zip
add systemd services
Diffstat (limited to 'initscripts.spec')
-rw-r--r--initscripts.spec21
1 files changed, 20 insertions, 1 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 55ac44d3..b54107ee 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -39,7 +39,9 @@ Requires: SysVinit >= 2.85-38
Requires: /sbin/ip, /sbin/arping, net-tools, /bin/find
Requires: /etc/system-release
Requires: /sbin/runuser
-Requires: udev >= 125-1
+Requires: udev >= 160-8
+Requires: systemd-units
+Conflicts: systemd < 4-4
Requires: cpio
Conflicts: mkinitrd < 4.0, kernel < 2.6.18, mdadm < 3.1.2-9
Conflicts: ypbind < 1.6-12, psacct < 6.3.2-12, kbd < 1.06-19, lokkit < 0.50-14
@@ -133,6 +135,21 @@ if [ $1 -eq 1 ]; then
fi
%endif
+%posttrans
+%if %{_with_systemd}
+for i in \
+ rcS-autoswap.service rcS-cleanup.service rcS-configure.service \
+ rcS-dmesg.service rcS-dmraid.service rcS-initcrypto1.service \
+ rcS-initcrypto2.service rcS-initcrypto3.service rcS-kernelparam.service \
+ rcS-loaddmmod.service rcS-loadmodules.service rcS-lvm.service \
+ rcS-mdraid.service rcS-mountall.service rcS-multipath.service \
+ rcS-quota.service rcS-random.service rcS-selinuxrelabel.service \
+ rcS-sysinitend.service rcS-waitscan.service ;do
+ /bin/systemctl enable $i ;
+done
+:
+%endif
+
%preun
if [ $1 = 0 ]; then
/sbin/chkconfig --del netfs
@@ -254,6 +271,8 @@ rm -rf $RPM_BUILD_ROOT
/lib/udev/console_check
/sbin/service
/sbin/ppp-watch
+/etc/rc.d/rcS.d/*
+/lib/systemd/system/rcS*.service
%{_mandir}/man*/*
%dir %attr(775,root,root) /var/run/netreport
%dir /etc/ppp