diff options
Diffstat (limited to 'network/lighttpd2/conf/rc.lighttpd2')
-rw-r--r-- | network/lighttpd2/conf/rc.lighttpd2 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/network/lighttpd2/conf/rc.lighttpd2 b/network/lighttpd2/conf/rc.lighttpd2 index e7a8ca286a..635092e071 100644 --- a/network/lighttpd2/conf/rc.lighttpd2 +++ b/network/lighttpd2/conf/rc.lighttpd2 @@ -28,7 +28,7 @@ PIDOF=$(pidof lighttpd2) lighttpd_start() { echo "Starting lighttpd2: $LIGHTTPD" - if [ $PIDOF ]; then + if [ "$PIDOF" ]; then echo "Already running!" return fi @@ -39,8 +39,9 @@ lighttpd_start() { lighttpd_stop() { echo "Stopping lighttpd2: $LIGHTTPD" - if [ $PIDOF ]; then + if [ "$PIDOF" ]; then kill $PIDOF + sleep 2 rm /var/run/lighttpd2/lighttpd2.pid else echo "Not running!" @@ -50,7 +51,7 @@ lighttpd_stop() { lighttpd_restart() { lighttpd_stop PIDOF= - sleep 1 + sleep 2 lighttpd_start } |