summaryrefslogtreecommitdiffstats
path: root/network/lighttpd2/conf
diff options
context:
space:
mode:
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
commit32cb8db1a07a1c0a45fedfb973532844483cf07f (patch)
treec6c46a7ffba43a9bf8ec3e5e0c0ca59afa25649f /network/lighttpd2/conf
parente0f0c52383e62b3942d6140153d70b82cd43a240 (diff)
downloadslackbuilds-32cb8db1a07a1c0a45fedfb973532844483cf07f.tar.gz
slackbuilds-32cb8db1a07a1c0a45fedfb973532844483cf07f.tar.xz
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.conf13
-rw-r--r--network/lighttpd2/conf/rc.lighttpd27
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
}