diff --git a/acpid.changes b/acpid.changes index 4d1299e..bdf19f4 100644 --- a/acpid.changes +++ b/acpid.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Sep 26 16:20:40 UTC 2011 - fcrozat@suse.com + +- Use latest systemd RPM macros. + ------------------------------------------------------------------- Fri Sep 23 14:18:54 UTC 2011 - fcrozat@suse.com diff --git a/acpid.spec b/acpid.spec index 4d94cca..ef05e92 100644 --- a/acpid.spec +++ b/acpid.spec @@ -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