Accepting request 84622 from home:fcrozat:branches:Base:System

- Ensure acpid is enabled on initial install, under systemd

OBS-URL: https://build.opensuse.org/request/show/84622
OBS-URL: https://build.opensuse.org/package/show/Base:System/acpid?expand=0&rev=35
This commit is contained in:
2011-09-23 15:09:54 +00:00
committed by Git OBS Bridge
parent fe2d05163d
commit 177af1f658
2 changed files with 8 additions and 0 deletions

View File

@@ -83,6 +83,9 @@ touch %buildroot%_var/log/acpid
%{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
%postun
%restart_on_update acpid