30 lines
539 B
Bash
30 lines
539 B
Bash
#!/bin/sh
|
|
|
|
# PROVIDE: mfschunkserver
|
|
# REQUIRE: DAEMON
|
|
# KEYWORD: shutdown
|
|
#
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf to enable mfschunkserver:
|
|
#
|
|
# mfschunkserver_enable="YES"
|
|
#
|
|
|
|
. /etc/rc.subr
|
|
|
|
name=mfschunkserver
|
|
rcvar=mfschunkserver_enable
|
|
|
|
config_file=%%PREFIX%%/etc/mfs/${name}.cfg
|
|
|
|
required_files=${config_file}
|
|
|
|
command=%%PREFIX%%/sbin/${name}
|
|
pid_file=%%MFS_WORKDIR%%/mfs/.${name}.lock
|
|
command_args="-c $config_file"
|
|
|
|
load_rc_config $name
|
|
|
|
# set defaults
|
|
: ${mfschunkserver_enable="NO"}
|
|
|
|
run_rc_command "$1"
|