summaryrefslogtreecommitdiff
blob: 13d033de7cd556c141a5da110f0aaf30c401215b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/sbin/runscript

PIDFILE=/var/run/mfscgiserv.pid

depend() {
	need net
}

start() {
	ebegin "Starting mfs CGI server"
	start-stop-daemon --start --quiet --exec /usr/sbin/mfscgiserv \
	--pidfile "${PIDFILE}" --make-pidfile --background \
	-- -H ${BIND_HOST} -P ${BIND_PORT} -f
	eend $?
}

stop() {
	ebegin "Stopping mfs CGI server"
	start-stop-daemon --stop -q --pidfile "${PIDFILE}"
	eend $?
}