mini_httpd.initd 653 Bytes
Newer Older
Natanael Copa's avatar
Natanael Copa committed
1 2 3 4 5
#!/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/mini_httpd/files/mini_httpd.init,v 1.2 2007/08/26 21:20:21 bangert Exp $

6
pidfile=/var/run/mini_httpd/${SVCNAME}.pid
7

Natanael Copa's avatar
Natanael Copa committed
8 9 10 11 12
depend() {
	need net
}

start() {
13 14 15
	ebegin "Starting $SVCNAME"
	start-stop-daemon --quiet --start --exec /usr/sbin/mini_httpd \
		--pidfile $pidfile -- -i $pidfile \
16
		${MINI_HTTPD_OPTS:--C /etc/${SVCNAME}.conf -l /var/log/mini_httpd/${SVCNAME}.log}
Natanael Copa's avatar
Natanael Copa committed
17 18 19 20
	eend $?
}

stop() {
21 22 23
	ebegin "Stopping $SVCNAME"
	start-stop-daemon --quiet --stop --pidfile $pidfile
	eend $?
Natanael Copa's avatar
Natanael Copa committed
24
}
25