Answer the question
In order to leave comments, you need to log in
How to check if a process is running in bash with a pid file?
Am I correct to check if the process is running?
PID=`cat $PIDFILE`
if
then
Answer the question
In order to leave comments, you need to log in
Usually they also check whether this is the process that interests you - so as not to nail something else inadvertently.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question