/[packages]/cauldron/apcupsd/current/SOURCES/apcupsd-3.14.4-mdv_conf.diff
ViewVC logotype

Contents of /cauldron/apcupsd/current/SOURCES/apcupsd-3.14.4-mdv_conf.diff

Parent Directory Parent Directory | Revision Log Revision Log


Revision 99236 - (show annotations) (download)
Mon May 16 13:01:05 2011 UTC (12 years, 10 months ago) by mikala
File size: 1077 byte(s)
imported package apcupsd
1 --- platforms/mandrake/apcupsd.in 2008-12-20 14:14:31.000000000 +0100
2 +++ platforms/mandrake/apcupsd.in.oden 2008-12-20 14:23:13.000000000 +0100
3 @@ -6,9 +6,17 @@
4 # chkconfig: 2345 60 99
5 # description: apcupsd monitors power and takes action if necessary
6 #
7 -APCPID=@PIDDIR@/apcupsd.pid
8
9 -DISTVER=`cat /etc/mandrake-release | grep release | cut -f 5 -d ' '`
10 +### BEGIN INIT INFO
11 +# Provides: apcupsd
12 +# Required-Start: $network $syslog
13 +# Required-Stop: $network $syslog
14 +# Default-Start: 2 3 5
15 +# Default-Stop:
16 +# Description: Start the apcupsd daemon
17 +### END INIT INFO
18 +
19 +APCPID=@PIDDIR@/apcupsd.pid
20
21 # Source function libarary
22 . /etc/rc.d/init.d/functions
23 @@ -41,11 +49,7 @@
24 fi
25 fi
26 echo -n "Starting UPS monitoring:"
27 - if [ "${DISTVER}" = "5.2" ] ; then
28 - @sbindir@/apcupsd -f @sysconfdir@/apcupsd.conf
29 - else
30 - @sbindir@/apcupsd -f @sysconfdir@/apcupsd.conf && success || failure
31 - fi
32 + @sbindir@/apcupsd -f @sysconfdir@/apcupsd.conf && success || failure
33 echo
34 touch @LOCKDIR@/subsys/apcupsd
35 ;;

  ViewVC Help
Powered by ViewVC 1.1.30