]> git.evergreen-ils.org Git - OpenSRF.git/commit
Use the same PID directory as the opensrf-perl.pl and opensrf.py scripts
authordbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 11 Nov 2010 14:25:02 +0000 (14:25 +0000)
committerdbs <dbs@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 11 Nov 2010 14:25:02 +0000 (14:25 +0000)
commite0074e87d499e301a7099d0a67bd8d0f20b2c447
treeeab77db5a6012faddc859414e299db69c93096f4
parent4e202243753e8b97ef8a340c1d31e0126616ecec
Use the same PID directory as the opensrf-perl.pl and opensrf.py scripts

The default PID directories for the opensrf-perl.pl and opensrf.py scripts
was /openils/var/run/opensrf (assuming a prefix of '/openils'), while the
default PID directory for osrf_ctl.sh was /openils/var/run. This complicated
matters when trying to restart individual Python or Perl services, as without
passing an explicit PID directory argument the restart command from the
language-specific script would check for a PID in a different PID directory,
find none, and end up running a second copy of the service instead of
restarting the existing service.

The change groups all PIDs in the 'run/opensrf' subdirectory to avoid any
PID file conflicts (as unlikely as that might be) if OpenSRF is installed
in the default location - so rather than /var/local/run/*.pid, one will
be able to look at /var/local/run/opensrf/*.pid

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2075 9efc2488-bf62-4759-914b-345cdb29e865
bin/osrf_ctl.sh.in