Lines 40-46
load_rc_config $name
Link Here
|
40 |
: ${zrepl_priority:="alert"} |
40 |
: ${zrepl_priority:="alert"} |
41 |
: ${zrepl_options:="${zrepl_flags} --config ${zrepl_config}"} |
41 |
: ${zrepl_options:="${zrepl_flags} --config ${zrepl_config}"} |
42 |
|
42 |
|
43 |
pidfile="/var/run/zrepl/daemon.pid" |
43 |
pidfile="/var/run/zrepl.pid" |
44 |
command="/usr/sbin/daemon" |
44 |
command="/usr/sbin/daemon" |
45 |
procname="%%PREFIX%%/bin/zrepl" |
45 |
procname="%%PREFIX%%/bin/zrepl" |
46 |
command_args="-p ${pidfile} %%DAEMON_LOGGING%% ${procname} ${zrepl_options} daemon" |
46 |
command_args="-p ${pidfile} %%DAEMON_LOGGING%% ${procname} ${zrepl_options} daemon" |
Lines 54-61
extra_commands="configtest"
Link Here
|
54 |
zrepl_precmd() |
54 |
zrepl_precmd() |
55 |
{ |
55 |
{ |
56 |
if [ ! -d "/var/run/zrepl/stdinserver" ]; then |
56 |
if [ ! -d "/var/run/zrepl/stdinserver" ]; then |
57 |
install -d -g ${zrepl_group} -o ${zrepl_user} -m 0755 -- "/var/run/zrepl"; |
57 |
install -d -g ${zrepl_group} -o ${zrepl_user} -m 0700 -- "/var/run/zrepl"; |
58 |
install -d -g ${zrepl_group} -o ${zrepl_user} -m 0755 -- "/var/run/zrepl/stdinserver"; |
58 |
install -d -g ${zrepl_group} -o ${zrepl_user} -m 0700 -- "/var/run/zrepl/stdinserver"; |
59 |
fi |
59 |
fi |
60 |
|
60 |
|
61 |
if [ ! -e "${pidfile}" ]; then |
61 |
if [ ! -e "${pidfile}" ]; then |