[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-devel] Patch for condor.init on Ubuntu
- Date: Mon, 17 Nov 2008 10:36:28 -0600
- From: Matthew Farrellee <matt@xxxxxxxxxx>
- Subject: Re: [Condor-devel] Patch for condor.init on Ubuntu
Andy Pavlo wrote:
I don't know if this is useful to you guys, but here's a patch to get the
condor.init script to work on Ubuntu. It mainly fixes the functions calls for
the system start/stop functions and to fix the paths to be the standard
locations needed by Debian's init infrastructure.
I've also added a hack borrowed from condor.boot to get the PID of the
condor_master, if the Debian start-stop-daemon fails to create the pid file.
Does this only work on Ubuntu systems? The condor.init file is intended
to work on LSB systems, though it hasn't been testing on all.
Typically /var/run and /var/lock are not generally writable, and the
condor_master drops privs before writing its pidfile, so making
pidfile=/var/run/$prog.pid won't work.
start_daemon does not create pid files, it just queries them. You need
to tell condor_master to create the file, which is what led to your
"Hack for Debian"
Is log_action_msg in LSB?
Best,
matt