2010-09-23 04:09:39 +00:00
|
|
|
#!/bin/sh
|
2010-09-24 07:07:26 +00:00
|
|
|
|
2010-09-23 04:09:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
# PROVIDE: darkice
|
2010-09-24 07:07:26 +00:00
|
|
|
# REQUIRE: LOGIN
|
2010-09-23 04:09:39 +00:00
|
|
|
# KEYWORD: SHUTDOWN
|
2010-09-24 07:07:26 +00:00
|
|
|
#
|
|
|
|
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
|
|
|
# to enable this service:
|
|
|
|
#
|
|
|
|
# darkice_enable (bool): Set to NO by default.
|
|
|
|
# Set it to YES to enable darkice.
|
2010-09-23 04:09:39 +00:00
|
|
|
|
2010-09-24 07:07:26 +00:00
|
|
|
. /etc/rc.subr
|
2010-09-23 04:09:39 +00:00
|
|
|
|
|
|
|
name="darkice"
|
2012-01-14 08:57:23 +00:00
|
|
|
rcvar=darkice_enable
|
2010-09-23 04:09:39 +00:00
|
|
|
|
|
|
|
command="%%PREFIX%%/bin/$name"
|
|
|
|
command_args="& 1>/dev/null"
|
|
|
|
required_files="%%ETCDIR%%.cfg"
|
|
|
|
|
|
|
|
# read configuration and set defaults
|
2010-09-24 07:07:26 +00:00
|
|
|
load_rc_config $name
|
|
|
|
|
2010-09-23 04:09:39 +00:00
|
|
|
: ${darkice_enable="NO"}
|
|
|
|
: ${darkice_flags="-c ${required_files}"}
|
|
|
|
|
2010-09-24 07:07:26 +00:00
|
|
|
run_rc_command $1
|