From dbc5ebe010f0ffaf7657c921f925767b3cd6e868 Mon Sep 17 00:00:00 2001 From: "U-DESKTOP-F991858\\strin" Date: Tue, 16 Apr 2019 21:40:23 -0400 Subject: [PATCH] subbing out @name in stop function with an ambiguous name. --- templates/daemon.sysv.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/daemon.sysv.erb b/templates/daemon.sysv.erb index dfefdeeb7..d2bd546c2 100644 --- a/templates/daemon.sysv.erb +++ b/templates/daemon.sysv.erb @@ -66,7 +66,7 @@ stop() { echo -n "Shutting down prometheus <%= @name %>: " mkpidfile - <%= @name %>_pid=$(cat $PID_FILE) + prometheus_pid=$(cat $PID_FILE) killproc $KILLPROC_OPT $DAEMON -INT retcode=$? @@ -74,7 +74,7 @@ stop() { # early if we can. If not, escalate to harsher signals. try=0 while [ $try -lt $DELAY ]; do - if ! checkpid $<%= @name %>_pid ; then + if ! checkpid $prometheus_pid ; then rm -f /var/lock/subsys/<%= @name %> return $retcode fi