When I look at my /etc/rc.d/init.d/functions
, I see the following under my killproc()
function.
if [ -n "${LSB:-}" -a -n "$killlevel" ]; then
RC=7 # Program is not running
else
failure $"$base shutdown"
RC=0
fi
The problem is that I have to set my /etc/init.d/<prog>
script to call with the following.
killproc -p /jail/var/run/prog.pid
Instead of the following.
killproc prog
When I trace through the killproc()
function it brought me to the above if statement, whenever I don't supply the -p <PID file>
option. Can someone let me know what that if statement does as I don't know what the LSB is for.