rpms/apcupsd/FC-5 apcupsd-3.14.0-init.patch, NONE, 1.1 apcupsd.spec, 1.12, 1.13 apcupsd-3.10.18-init.patch, 1.1, NONE

Orion Poplawski (orion) fedora-extras-commits at redhat.com
Mon Apr 23 20:01:52 UTC 2007


Author: orion

Update of /cvs/extras/rpms/apcupsd/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15212/FC-5

Modified Files:
	apcupsd.spec 
Added Files:
	apcupsd-3.14.0-init.patch 
Removed Files:
	apcupsd-3.10.18-init.patch 
Log Message:
Fix init script for LSB compliance (bug #237532)


apcupsd-3.14.0-init.patch:

--- NEW FILE apcupsd-3.14.0-init.patch ---
--- apcupsd-3.14.0/platforms/redhat/apcupsd.in.init	2005-01-09 15:55:41.000000000 -0700
+++ apcupsd-3.14.0/platforms/redhat/apcupsd.in	2007-04-23 12:13:35.000000000 -0600
@@ -3,7 +3,7 @@
 # apcupsd      This shell script takes care of starting and stopping
 #	       the apcupsd UPS monitoring daemon.
 #
-# chkconfig: 2345 60 99
+# chkconfig: - 60 99
 # description: apcupsd monitors power and takes action if necessary
 #
 APCPID=@PIDDIR@/apcupsd.pid
@@ -42,13 +42,24 @@
        rm -f $APCPID
        rm -f @LOCKDIR@/subsys/apcupsd
        ;;
-    restart)
+    restart|force-reload)
        $0 stop
        sleep 15
        $0 start
        ;;
+    reload)
+       echo "$0: reload not implemented"
+       exit 3
+       ;;
     status)
-       @sbindir@/apcaccess status
+       status apcupsd
+       RETVAL=$?
+       if [ $RETVAL -eq 0 ]
+       then
+          @sbindir@/apcaccess status
+       else
+          exit $RETVAL
+       fi
        ;;
     *)
        echo "Usage: $0 {start|stop|restart|status}"


Index: apcupsd.spec
===================================================================
RCS file: /cvs/extras/rpms/apcupsd/FC-5/apcupsd.spec,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- apcupsd.spec	5 Jan 2007 18:37:37 -0000	1.12
+++ apcupsd.spec	23 Apr 2007 20:01:18 -0000	1.13
@@ -1,6 +1,6 @@
 Name:         apcupsd
 Version:      3.12.4
-Release:      3%{?dist}
+Release:      4%{?dist}
 Summary:      APC UPS Power Control Daemon for Linux
 
 Group:        System Environment/Daemons
@@ -9,7 +9,7 @@
 Source0:      http://download.sourceforge.net/apcupsd/%{name}-%{version}.tar.gz
 Source1:      apcupsd.logrotate
 Source2:      apcupsd-httpd.conf
-Patch0:       apcupsd-3.10.18-init.patch
+Patch0:       apcupsd-3.14.0-init.patch
 BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires: glibc-devel >= 2.3, gd-devel > 2.0, dos2unix
@@ -143,6 +143,9 @@
 
 
 %changelog
+* Mon Apr 23 2007 - Orion Poplawski <orion at cora.nwra.com> - 3.12.4-4
+- Fix init script for LSB compliance (bug #237532)
+
 * Fri Jan  5 2007 - Orion Poplawski <orion at cora.nwra.com> - 3.12.4-3
 - Mark everything in /etc/apcupsd noreplace
 


--- apcupsd-3.10.18-init.patch DELETED ---




More information about the fedora-extras-commits mailing list