mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 14:56:53 +02:00
22 lines
398 B
Bash
22 lines
398 B
Bash
#!/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 $?
|
|
}
|
|
|