aboutsummaryrefslogtreecommitdiffstats
path: root/community/keepalived/always-use-pid-dir.patch
blob: a242cd7a4c4c9404d9df43bffdc98f698658d3ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
keepalived insists on creating PID files, so at least don't let it create in
/run (to avoid clash with OpenRC), but /run/keepalived. keepalived will
automatically create and delete this directory.

This is a downstream patch.

--- a/keepalived/core/main.c
+++ b/keepalived/core/main.c
@@ -120,7 +120,7 @@
 const char *snmp_socket;				/* Socket to use for SNMP agent */
 #endif
 static char *syslog_ident;				/* syslog ident if not default */
-bool use_pid_dir;					/* Put pid files in /var/run/keepalived or @localstatedir@/run/keepalived */
+bool use_pid_dir = true;				/* Put pid files in /var/run/keepalived or @localstatedir@/run/keepalived */
 
 unsigned os_major;					/* Kernel version */
 unsigned os_minor;