diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-16 18:41:16 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-05-16 18:41:16 +0000 |
commit | f78c812abd94019677e4e61aaf4c490c2b902ba6 (patch) | |
tree | 53fcae1a01acbe0a5a2816ef2260f6c3c295e962 /package/lighttpd/files/lighttpd.init | |
parent | 8d514c3040be58a5463bd906f06f483f4ec96236 (diff) |
Add lighttpd package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@917 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/lighttpd/files/lighttpd.init')
-rw-r--r-- | package/lighttpd/files/lighttpd.init | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/lighttpd/files/lighttpd.init b/package/lighttpd/files/lighttpd.init new file mode 100644 index 000000000..ca7a3f97f --- /dev/null +++ b/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 $? |