Lines 22-35
Link Here
|
22 |
rcvar=%%NAME%%_enable |
22 |
rcvar=%%NAME%%_enable |
23 |
command="%%PREFIX%%/bin/rsync" |
23 |
command="%%PREFIX%%/bin/rsync" |
24 |
command_args="--daemon" |
|
|
25 |
start_precmd="%%NAME%%_precmd" |
24 |
start_precmd="%%NAME%%_precmd" |
26 |
pidfile="/var/run/$name.pid" |
25 |
pidfile="/var/run/$name.pid" |
27 |
required_files="%%ETCDIR%%/$name.conf" |
|
|
28 |
# read configuration and set defaults |
26 |
# read configuration and set defaults |
29 |
load_rc_config "$name" |
27 |
load_rc_config "$name" |
30 |
: ${%%NAME%%_enable="NO"} |
28 |
: ${%%NAME%%_enable="NO"} |
|
|
29 |
: ${%%NAME%%_configfile:=%%ETCDIR%%/$name.conf} |
30 |
|
31 |
required_files="${%%NAME%%_configfile}" |
32 |
|
33 |
command_args="--daemon --config ${%%NAME%%_configfile}" |
31 |
%%NAME%%_precmd() |
34 |
%%NAME%%_precmd() |
32 |
{ |
35 |
{ |