Changed files:
apache-tomcat.init -> 1.10
fi
}
+condrestart() {
+ if [ -f /var/lock/subsys/tomcat ]; then
+ stop
+ start
+ else
+ msg_not_running tomcat
+ RETVAL=$1
+ fi
+}
+
RETVAL=0
# See how we were called.
case "$1" in
stop)
stop
;;
- restart|force-reload)
+ restart)
stop
start
;;
+ try-restart)
+ condrestart 0
+ ;;
+ force-reload)
+ condrestart 7
+ ;;
status)
echo "Not supported (yet?)"
RETVAL=0
;;
*)
- msg_usage "$0 {start|stop|restart|force-reload|status}"
+ msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"
exit 3
esac