Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/sysutils/consul-alerts/files/consul-alerts.in b/sysutils/consul-alerts/files/consul-alerts.in
- index b98dda641de..f24e46f59ca 100644
- --- a/sysutils/consul-alerts/files/consul-alerts.in
- +++ b/sysutils/consul-alerts/files/consul-alerts.in
- @@ -16,6 +16,8 @@
- . /etc/rc.subr
- +export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
- +
- name=consul_alerts
- rcvar=consul_alerts_enable
- @@ -28,5 +30,11 @@ pidfile=/var/run/consul-alerts.pid
- procname="%%PREFIX%%/bin/consul-alerts"
- command="/usr/sbin/daemon"
- command_args="-f -p ${pidfile} /usr/bin/env ${consul_alerts_env} ${procname} start ${consul_alerts_args}"
- +stop_cmd="stop_consul"
- +
- +stop_consul() {
- + echo "Killing all consul_alerts process."
- + ps ax | grep '[c]onsul watch -http-addr' | cut -d' ' -f1 | xargs kill -9
- +}
- run_rc_command "$1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement