Lines 1-26
Link Here
|
1 |
#!/bin/sh |
|
|
2 |
|
3 |
# PROVIDE: chillispot |
4 |
# REQUIRE: netif |
5 |
# BEFORE: pf ipfw ipfilter |
6 |
# KEYWORD: nojail |
7 |
|
8 |
. /etc/rc.subr |
9 |
|
10 |
chillispot_enable=${chillispot_enable-"NO"} |
11 |
chillispot_flags=${chillispot_flags-"--conf=/usr/local/etc/chilli.conf"} |
12 |
chillispot_pidfile=${utility_pidfile-"/var/run/chilli.pid"} |
13 |
|
14 |
. /etc/rc.subr |
15 |
|
16 |
name="chillispot" |
17 |
rcvar=`set_rcvar` |
18 |
command="/usr/local/sbin/chilli" |
19 |
|
20 |
load_rc_config $name |
21 |
|
22 |
pidfile="${chillipot_pidfile}" |
23 |
|
24 |
start_cmd="echo \"Starting ${name}.\"; /usr/bin/nice -5 ${command} ${chillispot_flags} ${command_args}" |
25 |
|
26 |
run_rc_command "$1" |