You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In files/glbd.sh on line 110-115 the start() command checks the exit code of the "pidof" statement. Shouldn't it check the exit code of the preceding "eval" statement instead? (edit -- maybe not but it didnt work in my alpine container)
Additionally, the statement pidof /usr/local/sbin/glbd (pidof $exec) returns a blank string instead of a pid, but pidof $prog returns a value. Actually it returns 2 PIDs, one of which is the executable and the second is the init script, but only the first should go into the .pid file.
I replaced lines 110-115 with the following and it seems to run well:
if ! eval $exec $GLBD_OPTIONS $LISTEN_ADDR $DEFAULT_TARGETS; then
echo "[`date`] $prog: failed to start."
exit 1
fi
PID=`pidof -o %PPID $prog`
The text was updated successfully, but these errors were encountered:
In
files/glbd.sh
on line 110-115 thestart()
command checks the exit code of the "pidof" statement. Shouldn't it check the exit code of the preceding "eval" statement instead? (edit -- maybe not but it didnt work in my alpine container)Additionally, the statement
pidof /usr/local/sbin/glbd
(pidof $exec
) returns a blank string instead of a pid, butpidof $prog
returns a value. Actually it returns 2 PIDs, one of which is the executable and the second is the init script, but only the first should go into the .pid file.I replaced lines 110-115 with the following and it seems to run well:
The text was updated successfully, but these errors were encountered: