aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/moosefs-master/files/mfscgiserv.in
blob: c447e358ae8555894a2ae5dd472e94700ccb8207 (plain) (blame)
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
30
31
32
33
34
35
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: mfscgiserv
# REQUIRE: LOGIN 
# KEYWORD: shutdown

#
# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to enable mfscgiserv:
#
# mfscgiserv_enable="YES"
#

. /etc/rc.subr

name=mfscgiserv
rcvar=mfscgiserv_enable

command=%%PREFIX%%/sbin/mfscgiserv

stop_postcmd=stop_postcmd

stop_postcmd()
{
  rm -f $pidfile
}

# set defaults
mfscgiserv_enable=${mfscgiserv_enable:-"NO"}
procname="python"

load_rc_config $name
run_rc_command "$1"