From c4bccf4a7a23abdd8828b4613de46031f3bfb98b Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Mon, 16 May 2005 18:41:16 +0000 Subject: Add lighttpd package SVN-Revision: 917 --- openwrt/package/lighttpd/files/lighttpd.init | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 openwrt/package/lighttpd/files/lighttpd.init (limited to 'openwrt/package/lighttpd/files/lighttpd.init') diff --git a/openwrt/package/lighttpd/files/lighttpd.init b/openwrt/package/lighttpd/files/lighttpd.init new file mode 100644 index 0000000..ca7a3f9 --- /dev/null +++ b/openwrt/package/lighttpd/files/lighttpd.init @@ -0,0 +1,24 @@ +#!/bin/sh + +BIN=lighttpd +DEFAULT=/etc/default/$BIN +LOG_D=/var/log/$BIN +RUN_D=/var/run +PID_F=$RUN_D/$BIN.pid +[ -f $DEFAULT ] && . $DEFAULT + +case $1 in + start) + mkdir -p $LOG_D + mkdir -p $RUN_D + $BIN $OPTIONS + ;; + stop) + [ -f $PID_F ] && kill $(cat $PID_F) + ;; + *) + echo "usage: $0 (start|stop)" + exit 1 +esac + +exit $? -- cgit v1.1