[cups/f16] Set correct systemd service default on upgrade (bug #748841).

Tim Waugh twaugh at fedoraproject.org
Mon Oct 31 11:55:41 UTC 2011


commit d44ca3247c00727ecfc986027d847fe77c15250d
Author: Tim Waugh <twaugh at redhat.com>
Date:   Mon Oct 31 10:54:25 2011 +0000

    Set correct systemd service default on upgrade (bug #748841).

 cups.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/cups.spec b/cups.spec
index 84f899b..949bdfd 100644
--- a/cups.spec
+++ b/cups.spec
@@ -13,7 +13,7 @@
 Summary: Common Unix Printing System
 Name: cups
 Version: 1.5.0
-Release: 18%{?dist}
+Release: 19%{?dist}
 License: GPLv2
 Group: System Environment/Daemons
 Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2
@@ -486,6 +486,9 @@ exit 0
 # to migrate them to systemd targets
 %{_bindir}/systemd-sysv-convert --save %{name} >/dev/null 2>&1 || :
 
+# This package is allowed to autostart:
+/bin/systemctl --no-reload enable %{name}.{service,socket,path} || :
+
 # Run these because the SysV package being removed won't do them
 /sbin/chkconfig --del cups >/dev/null 2>&1 || :
 /bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
@@ -646,6 +649,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/ipptool.1.gz
 
 %changelog
+* Mon Oct 31 2011 Tim Waugh <twaugh at redhat.com> 1:1.5.0-19
+- Set correct systemd service default on upgrade (bug #748841).
+
 * Wed Oct 19 2011 Tim Waugh <twaugh at redhat.com> 1:1.5.0-18
 - Make sure to guard against retrying the Avahi connection whilst
   already doing so (Ubuntu #877967).


More information about the scm-commits mailing list