blob: b4ebd1f9d1c2baa7376befd7de507d3276b588d1 (
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
28
29
|
#!/sbin/runscript
PIDFILE=/var/run/mfscgiserv.pid
extra_started_commands="reload"
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 $?
}
reload() {
ebegin "Reloading mfs CGI server"
start-stop-daemon --signal HUP --pidfile "${PIDFILE}"
eend $?
}
|