--- tomcat6 2009-02-26 00:33:18 +0600 +++ /etc/init.d/tomcat6 2009-02-26 00:35:29 +0600 @@ -269,6 +269,13 @@ fi } +function restart() { + parseOptions + stop + sleep 2 + start +} + # See how we were called. case "$1" in @@ -281,10 +288,7 @@ stop ;; restart) - parseOptions - stop - sleep 2 - start + restart ;; condrestart) if [ -f "/var/run/${NAME}.pid" ]; then