packages/net/lighttpd/files/lighttpd.init
nico d5a98f807d packages/lighttpd: use new service functions (closes: #10246)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29253 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-18 23:14:10 +00:00

17 lines
252 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006-2011 OpenWrt.org
SERVICE_USE_PID=1
START=50
start() {
mkdir -m 0755 -p /var/log/lighttpd
service_start /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf
}
stop() {
service_stop /usr/sbin/lighttpd
}