SOURCES: smokeping.init - added --pidfile argument (required subdir as smok...
gotar
gotar at pld-linux.org
Sun Feb 15 15:20:50 CET 2009
Author: gotar Date: Sun Feb 15 14:20:50 2009 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- added --pidfile argument (required subdir as smokeping doesn't run as root anymore)
---- Files affected:
SOURCES:
smokeping.init (1.5 -> 1.6)
---- Diffs:
================================================================
Index: SOURCES/smokeping.init
diff -u SOURCES/smokeping.init:1.5 SOURCES/smokeping.init:1.6
--- SOURCES/smokeping.init:1.5 Tue Nov 11 14:05:21 2008
+++ SOURCES/smokeping.init Sun Feb 15 15:20:44 2009
@@ -29,7 +29,7 @@
start() {
if [ ! -f /var/lock/subsys/smokeping ]; then
msg_starting smokeping
- daemon --user smokeping smokeping
+ daemon --pidfile /var/run/smokeping/smokeping.pid --user smokeping smokeping
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/smokeping
else
@@ -40,7 +40,7 @@
stop() {
if [ -f /var/lock/subsys/smokeping ]; then
msg_stopping smokeping
- killproc smokeping
+ killproc --pidfile /var/run/smokeping/smokeping.pid smokeping
rm -f /var/lock/subsys/smokeping >/dev/null 2>&1
else
msg_not_running smokeping
@@ -50,13 +50,13 @@
RETVAL=0
case "$1" in
start)
- start
+ start
;;
stop)
- stop
+ stop
;;
restart|reload)
- checkconfig
+ checkconfig
stop
start
exit $?
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/smokeping.init?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list