aboutsummaryrefslogtreecommitdiffstats
path: root/testing/moosefs/moosefs-cgiserv.initd
blob: fdd01c0257a5238b13045e8ad4902acb86f8976b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/openrc-run

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 $?
}