From f0480cb93d795bd368ceed5e251bde0c50b4bca9 Mon Sep 17 00:00:00 2001 From: Jiri Popelka Date: Fri, 3 Dec 2010 14:10:34 +0100 Subject: [PATCH] Fixed initscript to stop service on reboot/halt (bug #659391). --- cups.init | 4 ++-- cups.spec | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) mode change 100644 => 100755 cups.init diff --git a/cups.init b/cups.init old mode 100644 new mode 100755 index c398bfc..34d734c --- a/cups.init +++ b/cups.init @@ -49,7 +49,7 @@ DAEMON=cupsd exec=/usr/sbin/cupsd prog=cups config=/etc/cups/cupsd.conf -lockfile=/var/lock/subsys/$DAEMON +lockfile=/var/lock/subsys/cups check() { # Check that we're a privileged user @@ -129,7 +129,7 @@ case $1 in echo ;; status) - status $DAEMON + status -l $(basename $lockfile) $DAEMON RETVAL=$? ;; restartlog) diff --git a/cups.spec b/cups.spec index 4a49864..acff9a8 100644 --- a/cups.spec +++ b/cups.spec @@ -8,7 +8,7 @@ Summary: Common Unix Printing System Name: cups Version: 1.4.5 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 Group: System Environment/Daemons Source: http://ftp.easysw.com/pub/cups/%{version}/cups-%{version}-source.tar.bz2 @@ -573,6 +573,10 @@ rm -rf $RPM_BUILD_ROOT %{php_extdir}/phpcups.so %changelog +* Fri Dec 03 2010 Jiri Popelka 1:1.4.5-2 +- Changed subsystem lock file name in initscript + so the service is correctly stopped on reboot or halt (bug #659391). + * Fri Nov 12 2010 Jiri Popelka 1:1.4.5-1 - 1.4.5. - No longer need CVE-2010-2941, str3608