summaryrefslogtreecommitdiff
blob: f6789b9d6b69b4fc21d7617c5951ee33e162050d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd-1.3.10.initd,v 1.2 2005/06/06 12:11:08 ka0ttic Exp $

PID_FILE="/var/run/lighttpd.pid"
LIGHTTPD_BIN="/usr/sbin/lighttpd"
LIGHTTPD_CONF="/etc/lighttpd.conf"

depend() {
	need net
	use mysql logger spawn-fcgi ldap
	after sshd
}
			
start() {
	ebegin "Starting lighttpd"
	start-stop-daemon --start --quiet --exec ${LIGHTTPD_BIN} -- \
		-f ${LIGHTTPD_CONF}
	eend $?
}

stop() {
	ebegin "Stopping lighttpd"
	start-stop-daemon --stop --quiet --exec ${LIGHTTPD_BIN}
	eend $?
}