From 177af1f658cfd289ad4e3515bb83e6619255cc70f06cbeba325a1b5778506776 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Fri, 23 Sep 2011 15:09:54 +0000 Subject: [PATCH] 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 --- acpid.changes | 5 +++++ acpid.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/acpid.changes b/acpid.changes index 1f76495..4d1299e 100644 --- a/acpid.changes +++ b/acpid.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 23 14:18:54 UTC 2011 - fcrozat@suse.com + +- Ensure acpid is enabled on initial install, under systemd + ------------------------------------------------------------------- Sat Sep 17 10:46:41 UTC 2011 - jengelh@medozas.de diff --git a/acpid.spec b/acpid.spec index a788ce5..4d94cca 100644 --- a/acpid.spec +++ b/acpid.spec @@ -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