Accepting request 85108 from home:fcrozat:systemd

- Use latest systemd RPM macros.

OBS-URL: https://build.opensuse.org/request/show/85108
OBS-URL: https://build.opensuse.org/package/show/Base:System/acpid?expand=0&rev=37
This commit is contained in:
2011-09-27 18:36:59 +00:00
committed by Git OBS Bridge
parent 177af1f658
commit 2d2118eecb
2 changed files with 7 additions and 7 deletions

View File

@@ -77,20 +77,15 @@ install -dm 755 %buildroot%_var/log
touch %buildroot%_var/log/acpid
%pre
%service_migrate_to_systemd_pre acpid
%service_add_pre acpid.service
%post
%{fillup_and_insserv -y -f acpid}
%service_migrate_to_systemd_post acpid
%service_add acpid.service
if [ $FIRST_ARG -eq 1 ]; then
/bin/systemctl enable acpid.service 2> /dev/null || :
fi
%service_add_post acpid.service
%postun
%restart_on_update acpid
%{insserv_cleanup}
%service_migrate_to_systemd_postun acpid
%service_del_postun acpid.service
%preun