[dm-devel] [PATCH 14/18] Make use of /run depend on systemd
Benjamin Marzinski
bmarzins at redhat.com
Thu Oct 8 19:44:47 UTC 2015
While there are other ways to decide whether to use /run or /var/run,
I believe this should be good enough, and it uses a Makefile define
that already exists. If it doesn't work for everyone, I'll switch it
to actually test the directories and add a new define to CFLAGS.
Signed-off-by: Benjamin Marzinski <bmarzins at redhat.com>
---
libmultipath/defaults.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libmultipath/defaults.h b/libmultipath/defaults.h
index e2d2779..a313d75 100644
--- a/libmultipath/defaults.h
+++ b/libmultipath/defaults.h
@@ -27,7 +27,11 @@
#define MAX_CHECKINT(a) (a << 2)
#define MAX_DEV_LOSS_TMO 0x7FFFFFFF
+#ifdef USE_SYSTEMD
#define DEFAULT_PIDFILE "/run/multipathd.pid"
+#else
+#define DEFAULT_PIDFILE "/var/run/multipathd.pid"
+#endif
#define DEFAULT_CONFIGFILE "/etc/multipath.conf"
#define DEFAULT_BINDINGS_FILE "/etc/multipath/bindings"
#define DEFAULT_WWIDS_FILE "/etc/multipath/wwids"
--
1.8.3.1
More information about the dm-devel
mailing list