rpms/rtkit/devel rtkit.spec,1.6,1.7

Lennart Poettering lennart at fedoraproject.org
Tue Jun 29 19:46:55 UTC 2010


Author: lennart

Update of /cvs/pkgs/rpms/rtkit/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv9375

Modified Files:
	rtkit.spec 
Log Message:
enable/disable systemd service by default


Index: rtkit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/rtkit/devel/rtkit.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- rtkit.spec	29 Jun 2010 19:39:43 -0000	1.6
+++ rtkit.spec	29 Jun 2010 19:46:55 -0000	1.7
@@ -55,6 +55,12 @@ getent passwd rtkit >/dev/null 2>&1 || u
 
 %post
 dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
+/usr/bin/systemd-install enable rtkit-daemon.service >/dev/null 2>&1 || :
+
+%preun
+if [ "$1" -eq 0 ]; then
+	/usr/bin/systemd-install disable rtkit-daemon.service >/dev/null 2>&1 || :
+fi
 
 %files
 %defattr(0644,root,root,0755)



More information about the scm-commits mailing list