]> git.koha-community.org Git - koha.git/commit
Bug 13896: Fix pid file creation, use proper directory instead of /tmp/
authorAttila Kinali <attila@kinali.ch>
Mon, 23 Mar 2015 21:58:22 +0000 (22:58 +0100)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 8 Apr 2015 17:47:46 +0000 (14:47 -0300)
commitc4a45759232b87712c67dd01631a3f7cb696b967
tree4d1f178ec963401f6d67b8ea37f0525d1a534b86
parent2fa0f6f4ab2c2492309db92fed2d34d148d9ffd3
Bug 13896: Fix pid file creation, use proper directory instead of /tmp/

daemon uses by default /tmp/ for pid files, if they are unspecified.
Pass the right directory to daemon, so it knows where to put the pid file.

Signed-off-by: Attila Kinali <attila@kinali.ch>
TEST PLAN
---------
1) Roll a distribution and confirm it works.

OR

1) Hack all the /var directories to point to git directories
2) Add a dummy user for the instance name
3) sudo the script with the faked instance name.
   -- the daemon should be running and the pid file should be in
      the expected directory.

The first way is the proper way to test, I did the latter. :)

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
debian/scripts/koha-start-zebra