SOURCES: incron.init - missing dirs addded; functions in init script
blues
blues at pld-linux.org
Tue Dec 2 17:28:49 CET 2008
Author: blues Date: Tue Dec 2 16:28:49 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- missing dirs addded; functions in init script
---- Files affected:
SOURCES:
incron.init (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/incron.init
diff -u SOURCES/incron.init:1.1 SOURCES/incron.init:1.2
--- SOURCES/incron.init:1.1 Tue Dec 2 16:57:02 2008
+++ SOURCES/incron.init Tue Dec 2 17:28:43 2008
@@ -17,10 +17,7 @@
# Get service config
[ -f /etc/sysconfig/incron ] && . /etc/sysconfig/incron
-RETVAL=0
-# See how we were called.
-case "$1" in
- start)
+start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/incrond ]; then
msg_starting incrond
@@ -30,8 +27,9 @@
else
msg_already_running incrond
fi
- ;;
- stop)
+}
+
+stop() {
# Stop daemons.
if [ -f /var/lock/subsys/incrond ]; then
msg_stopping incrond
@@ -40,15 +38,24 @@
else
msg_not_running incrond
fi
+}
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
;;
status)
status incrond
exit $?
;;
restart|force-reload)
- $0 stop
- $0 start
+ stop
+ start
exit $?
;;
*)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/incron.init?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list