blob: 4460a539ef5f3d209dca98fd5467f43e555e0272 (
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
|
#!/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 $
pidfile=/var/run/${SVCNAME}.pid
depend() {
need net
}
start() {
ebegin "Starting $SVCNAME"
start-stop-daemon --quiet --start --exec /usr/sbin/mini_httpd \
--pidfile $pidfile -- -i $pidfile \
${MINI_HTTPD_OPTS:--C /etc/${SVCNAME}.conf}
eend $?
}
stop() {
ebegin "Stopping $SVCNAME"
start-stop-daemon --quiet --stop --pidfile $pidfile
eend $?
}
|