blob: 8036797d39ebb75c7d2ad65ae9cef9d5c7052e3e (
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
|
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: darkice
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: SHUTDOWN
. "/etc/rc.subr"
name="darkice"
rcvar=`set_rcvar`
command="%%PREFIX%%/bin/$name"
command_args="& 1>/dev/null"
required_files="%%ETCDIR%%.cfg"
# read configuration and set defaults
load_rc_config "$name"
: ${darkice_enable="NO"}
: ${darkice_flags="-c ${required_files}"}
run_rc_command "$1"
|