wrap killall to ignore exit code
@@ -12,10 +12,12 @@ source /var/vcap/packages/loggregator_common/pid_utils.sh
case $1 in
start)
+ set +e
killall -15 metron
killall -9 metron
killall -2 metron
killall -3 metron
+ set -e
(crontab -l | sed /metron_agent.*logrotate/d; cat /var/vcap/jobs/metron_agent/config/metron_agent_logrotate.cron) | sed /^$/d | crontab
@@ -35,10 +37,12 @@ case $1 in
;;
stop)
+ set +e
killall -15 metron
killall -9 metron
killall -2 metron
killall -3 metron
+ set -e
rm -f $PIDFILE
