monit: fix default piddir (if you don't use "set pidfile")
authorEtienne CHAMPETIER <etienne.champetier@free.fr>
Wed, 11 Jun 2014 20:02:56 +0000 (22:02 +0200)
committerEtienne CHAMPETIER <etienne.champetier@free.fr>
Wed, 11 Jun 2014 21:14:16 +0000 (23:14 +0200)
Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
admin/monit/patches/001-fix-default-piddir.patch [new file with mode: 0644]

diff --git a/admin/monit/patches/001-fix-default-piddir.patch b/admin/monit/patches/001-fix-default-piddir.patch
new file mode 100644 (file)
index 0000000..c20079e
--- /dev/null
@@ -0,0 +1,18 @@
+--- a/configure
++++ b/configure
+@@ -13555,14 +13555,7 @@ fi
+ # Find the right directory to put the root-mode PID file in
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking pid file location" >&5
+ $as_echo_n "checking pid file location... " >&6; }
+-if test -d "/run"
+-then
+-      piddir="/run"
+-elif test -d "/var/run"; then
+-        piddir="/var/run"
+-elif test -d "/etc"; then
+-        piddir="/etc"
+-fi
++piddir="/var/run"
+ cat >>confdefs.h <<_ACEOF