diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2015-03-08 11:26:14 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-03-14 16:55:53 +0700 |
commit | 32cb8db1a07a1c0a45fedfb973532844483cf07f (patch) | |
tree | c6c46a7ffba43a9bf8ec3e5e0c0ca59afa25649f /network/lighttpd2/conf | |
parent | e0f0c52383e62b3942d6140153d70b82cd43a240 (diff) | |
download | slackbuilds-32cb8db1a07a1c0a45fedfb973532844483cf07f.tar.gz |
network/lighttpd2: Updated for version 20150125_6b22f2f.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'network/lighttpd2/conf')
-rw-r--r-- | network/lighttpd2/conf/angel.conf | 13 | ||||
-rw-r--r-- | network/lighttpd2/conf/rc.lighttpd2 | 7 |
2 files changed, 8 insertions, 12 deletions
diff --git a/network/lighttpd2/conf/angel.conf b/network/lighttpd2/conf/angel.conf index 49d8890740..d02e674fe5 100644 --- a/network/lighttpd2/conf/angel.conf +++ b/network/lighttpd2/conf/angel.conf @@ -1,11 +1,6 @@ -instance { - user "lighttpd"; - group "lighttpd"; +user "lighttpd"; +group "lighttpd"; - max-open-files 16384; +max_open_files 16384; - copy-env ( "PATH" ); - -# env ( "G_SLICE=always-malloc", "G_DEBUG=gc-friendly" ); -# wrapper ("/usr/bin/valgrind", "--leak-check=full", "--show-reachable=yes", "--leak-resolution=high" ); -} +copy_env ( "PATH" ); 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 } |