Make use of the new systemd macros
This commit is contained in:
parent
4a31f92233
commit
b3931dc2c5
16
rtkit.spec
16
rtkit.spec
@ -1,6 +1,6 @@
|
||||
Name: rtkit
|
||||
Version: 0.11
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
Summary: Realtime Policy and Watchdog Daemon
|
||||
Group: System Environment/Base
|
||||
# The daemon itself is GPLv3+, the reference implementation for the client BSD
|
||||
@ -51,19 +51,14 @@ getent passwd rtkit >/dev/null 2>&1 || useradd \
|
||||
:;
|
||||
|
||||
%post
|
||||
if [ $1 -eq 1 ]; then
|
||||
/bin/systemctl enable rtkit.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_post rtkit-daemon.service
|
||||
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
|
||||
|
||||
%preun
|
||||
if [ "$1" -eq 0 ]; then
|
||||
/bin/systemctl --no-reload disable rtkit-daemon.service >/dev/null 2>&1 || :
|
||||
/bin/systemctl stop rtkit-daemon.service >/dev/null 2>&1 || :
|
||||
fi
|
||||
%systemd_preun rtkit-daemon.service
|
||||
|
||||
%postun
|
||||
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
|
||||
%systemd_postun
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
@ -78,6 +73,9 @@ fi
|
||||
%{_mandir}/man8/*
|
||||
|
||||
%changelog
|
||||
* Fri Sep 14 2012 Lennart Poettering <lpoetter@redhat.com> - 0.11-3
|
||||
- Make use of the new systemd macros
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user