]> 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)
committerChris Cormack <chris@bigballofwax.co.nz>
Sun, 12 Apr 2015 07:48:02 +0000 (19:48 +1200)
commit5be733493f78cecc640fe2891b40527e6cdd4b58
tree38bc325794bb87e3f8469353cac63a5de3033974
parentffa3eb17df7bbdc8c7e749a9b5c9b30dd9cf88b8
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>
(cherry picked from commit c4a45759232b87712c67dd01631a3f7cb696b967)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
debian/scripts/koha-start-zebra