View | Details | Raw Unified | Return to bug 252364
Collapse All | Expand All

(-)textproc/consul-template/files/consul-template.in (-1 / +8 lines)
Lines 19-24 Link Here
19
#                                          Default is "".
19
#                                          Default is "".
20
# consul_template_args (string):        Set flags used with consul-template.
20
# consul_template_args (string):        Set flags used with consul-template.
21
#                                          Default is "".
21
#                                          Default is "".
22
# consul_template_syslog_output_enable (string): Set to YES to enable syslog output
23
#                                          Default is "NO". See daemon(8).
22
24
23
. /etc/rc.subr
25
. /etc/rc.subr
24
26
Lines 32-42 Link Here
32
: ${consul_template_group:="wheel"}
34
: ${consul_template_group:="wheel"}
33
: ${consul_template_env:=""}
35
: ${consul_template_env:=""}
34
: ${consul_template_args:=""}
36
: ${consul_template_args:=""}
37
: ${consul_template_syslog_output_enable:="NO"}
35
38
39
if checkyesno consul_template_syslog_output_enable; then
40
    consul_template_syslog_output_flags="-T ${name}"
41
fi
42
36
pidfile=/var/run/consul-template.pid
43
pidfile=/var/run/consul-template.pid
37
procname="%%PREFIX%%/bin/consul-template"
44
procname="%%PREFIX%%/bin/consul-template"
38
command="/usr/sbin/daemon"
45
command="/usr/sbin/daemon"
39
command_args="-f -p ${pidfile} /usr/bin/env ${consul_template_env} ${procname} -config=%%PREFIX%%/etc/consul-template.d ${consul_template_args}"
46
command_args="-f -t ${name} ${consul_template_syslog_output_flags} -p ${pidfile} /usr/bin/env ${consul_template_env} ${procname} -config=%%PREFIX%%/etc/consul-template.d ${consul_template_args}"
40
sig_stop="INT"
47
sig_stop="INT"
41
48
42
start_precmd=consul_template_startprecmd
49
start_precmd=consul_template_startprecmd

Return to bug 252364