aboutsummaryrefslogtreecommitdiffstats
path: root/community/keepalived/always-use-pid-dir.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/keepalived/always-use-pid-dir.patch')
-rw-r--r--community/keepalived/always-use-pid-dir.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/community/keepalived/always-use-pid-dir.patch b/community/keepalived/always-use-pid-dir.patch
new file mode 100644
index 0000000000..fe9a081335
--- /dev/null
+++ b/community/keepalived/always-use-pid-dir.patch
@@ -0,0 +1,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
+@@ -87,7 +87,7 @@
+ #endif
+ static char *syslog_ident; /* syslog ident if not default */
+ char *instance_name; /* keepalived instance name */
+-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;