Browse Source

monit: fix default piddir (if you don't use "set pidfile")

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
Etienne CHAMPETIER 10 years ago
parent
commit
3eb37a3f52
1 changed files with 18 additions and 0 deletions
  1. 18
    0
      admin/monit/patches/001-fix-default-piddir.patch

+ 18
- 0
admin/monit/patches/001-fix-default-piddir.patch View File

@@ -0,0 +1,18 @@
1
+--- a/configure
2
++++ b/configure
3
+@@ -13555,14 +13555,7 @@ fi
4
+ # Find the right directory to put the root-mode PID file in
5
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking pid file location" >&5
6
+ $as_echo_n "checking pid file location... " >&6; }
7
+-if test -d "/run"
8
+-then
9
+-	piddir="/run"
10
+-elif test -d "/var/run"; then
11
+-        piddir="/var/run"
12
+-elif test -d "/etc"; then
13
+-        piddir="/etc"
14
+-fi
15
++piddir="/var/run"
16
+ 
17
+ 
18
+ cat >>confdefs.h <<_ACEOF