Lines 19-24
Link Here
|
19 |
name=mosquitto |
19 |
name=mosquitto |
20 |
rcvar=mosquitto_enable |
20 |
rcvar=mosquitto_enable |
21 |
|
21 |
|
|
|
22 |
load_rc_config $name |
23 |
|
22 |
mosquitto_enable=${mosquitto_enable:="NO"} |
24 |
mosquitto_enable=${mosquitto_enable:="NO"} |
23 |
mosquitto_config=${mosquitto_config:="%%PREFIX%%/etc/mosquitto/mosquitto.conf"} |
25 |
mosquitto_config=${mosquitto_config:="%%PREFIX%%/etc/mosquitto/mosquitto.conf"} |
24 |
mosquitto_user=${mosquitto_user:="nobody"} |
26 |
mosquitto_user=${mosquitto_user:="nobody"} |
Lines 28-44
command_args="-c ${mosquitto_config} -d"
Link Here
|
28 |
pidfile=${mosquitto_pidfile:-"/var/run/mosquitto.pid"} |
30 |
pidfile=${mosquitto_pidfile:-"/var/run/mosquitto.pid"} |
29 |
required_files=${mosquitto_config} |
31 |
required_files=${mosquitto_config} |
30 |
|
32 |
|
31 |
extra_commands="reload" |
33 |
extra_commands=reload |
32 |
stop_postcmd=stop_postcmd |
34 |
stop_postcmd="rm -f $pidfile" |
33 |
stop_postcmd() |
35 |
start_precmd="install -o ${mosquitto_user} -m 644 /dev/null ${pidfile}" |
34 |
{ |
|
|
35 |
rm -f $pidfile |
36 |
} |
37 |
start_precmd=start_precmd |
38 |
start_precmd() |
39 |
{ |
40 |
install -o ${mosquitto_user} -m 644 /dev/null ${pidfile} |
41 |
} |
42 |
|
36 |
|
43 |
load_rc_config $name |
|
|
44 |
run_rc_command "$1" |
37 |
run_rc_command "$1" |