blob: 39f9f59ddb6d2c1d5d4c95a9bb73f25247148a79 (
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
|
#!/bin/sh
# PROVIDE: mfscgiserv
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable mfscgiserv:
#
# mfscgiserv_enable="YES"
#
. /etc/rc.subr
name=mfscgiserv
rcvar=mfscgiserv_enable
command=%%PREFIX%%/sbin/${name}
pid_file=%%MFS_WORKDIR%%/mfs/.${name}.lock
procname="python"
stop_cmd="$command stop"
status_cmd="$command test"
load_rc_config $name
# set defaults
: ${mfscgiserv_enable="NO"}
run_rc_command "$1"
|