HTCondor Project List Archives



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-devel] Stopping condor fails with stale PID file [PATCH]



On Fri, Mar 09, 2012 at 02:35:32PM -0600, Jaime Frey wrote:
> If I'm reading condor.boot.rpm correctly, your patch calls ps with no
> arguments and searches the output for a line starting with the
> condor_master's pid. I see two problems. First, if ps is called with
> no arguments, it won't include condor_master in its results. Second,
> if a pid is less than 5 digits long, ps adds spaces in front of it.
> This would cause your patch to not notice the condor_master's pid.

You're right, I guess the patch basically disables the PID file usage.
However, $PS is used in the same way few lines down the script. Whatever
change needs to be made, should probably also be applied there.

Michael


-- 
Michael Hanke
http://mih.voxindeserto.de