Bug 471906

Summary: condor init script writes pidfile to /var/lib/condor
Product: Red Hat Enterprise MRG Reporter: Matthew Farrellee <matt>
Component: gridAssignee: Matthew Farrellee <matt>
Status: CLOSED ERRATA QA Contact: Kim van der Riet <kim.vdriet>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.0CC: jsarenik
Target Milestone: 1.1.1   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-04-21 16:18:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Farrellee 2008-11-17 16:41:59 UTC
Description of problem:

Not technically a problem, but an inconsistency.

/var/run/condor should be the target for pidfiles, and it should be made available from the condor RPM.

Comment 1 Matthew Farrellee 2008-11-17 16:42:46 UTC
This is a problem for people who store /var/lib/condor on a shared file system.

Comment 2 Matthew Farrellee 2009-01-21 15:56:12 UTC
This will be fixed in 7.2.0-4

commit c2cb6fdf7f29c8de9b8aaff99b1d89a51a47e655
Author: Matthew Farrellee <matt>
Date:   Wed Jan 21 08:03:07 2009 -0600

    Moved pidfile from /var/lib/condor to a more proper /var/run/condor

diff --git a/src/condor_examples/condor.init b/src/condor_examples/condor.init
index 04f1047..9fbb23a 100644
--- a/src/condor_examples/condor.init
+++ b/src/condor_examples/condor.init
@@ -7,7 +7,7 @@
 #             platform.
 # processname: condor_master
 # config: /etc/condor/condor_config
-# pidfile: /var/lib/condor/condor_master.pid
+# pidfile: /var/run/condor/condor_master.pid
 
 ### BEGIN INIT INFO
 # Provides: condor
@@ -21,7 +21,7 @@
 prog=condor_master
 
 lockfile=/var/lock/subsys/$prog
-pidfile=/var/lib/condor/$prog.pid
+pidfile=/var/run/condor/$prog.pid
 
 # Source function library
 . /etc/init.d/functions

Comment 3 Jan Sarenik 2009-01-29 09:35:51 UTC
Verified on condor-7.2.1-0.1.el5:

rhel5:~# service condor start
Starting Condor daemons:                                   [  OK  ]
rhel5:~# ls /var/lib/condor/
condor_config.local  execute  log  spool
rhel5:~# ls /var/run/condor/
condor_master.pid  procd_pipe.SCHEDD  procd_pipe.SCHEDD.watchdog

Comment 5 errata-xmlrpc 2009-04-21 16:18:52 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHEA-2009-0434.html