SOURCES: ntpwatchd.init - LSB 3.1: add try-restart
glen
glen at pld-linux.org
Thu May 15 16:00:43 CEST 2008
Author: glen Date: Thu May 15 14:00:43 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- LSB 3.1: add try-restart
---- Files affected:
SOURCES:
ntpwatchd.init (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SOURCES/ntpwatchd.init
diff -u SOURCES/ntpwatchd.init:1.2 SOURCES/ntpwatchd.init:1.3
--- SOURCES/ntpwatchd.init:1.2 Thu May 15 15:59:04 2008
+++ SOURCES/ntpwatchd.init Thu May 15 16:00:38 2008
@@ -29,14 +29,13 @@
fi
}
-reload() {
+condrestart() {
if [ -f /var/lock/subsys/ntpwatchd ]; then
- msg_reloading "ntpwatchd"
stop
start
else
msg_not_running ntpwatchd
- exit 7
+ RETVAL=$1
fi
}
@@ -53,14 +52,17 @@
stop
start
;;
- reload|force-reload)
- reload
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
;;
status)
status ntpwatchd
;;
*)
- msg_usage "$0 {start|stop|restart|reload|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|force-reload|reload|status}"
exit 3
;;
esac
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/ntpwatchd.init?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list