SOURCES: incron.init - unify from template.init of rc-scripts %doc
glen
glen at pld-linux.org
Tue Dec 2 17:44:10 CET 2008
Author: glen Date: Tue Dec 2 16:44:10 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- unify from template.init of rc-scripts %doc
---- Files affected:
SOURCES:
incron.init (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/incron.init
diff -u SOURCES/incron.init:1.2 SOURCES/incron.init:1.3
--- SOURCES/incron.init:1.2 Tue Dec 2 17:28:43 2008
+++ SOURCES/incron.init Tue Dec 2 17:44:05 2008
@@ -40,6 +40,16 @@
fi
}
+condrestart() {
+ if [ -f /var/lock/subsys/incrond ]; then
+ stop
+ start
+ else
+ msg_not_running incrond
+ RETVAL=$1
+ fi
+}
+
RETVAL=0
# See how we were called.
case "$1" in
@@ -49,17 +59,22 @@
stop)
stop
;;
- status)
- status incrond
- exit $?
- ;;
- restart|force-reload)
+ restart)
stop
start
+ ;;
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
+ status)
+ status incrond
exit $?
;;
*)
- msg_usage "$0 {start|stop|restart|force-reload|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
exit 3
esac
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/incron.init?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list