summaryrefslogtreecommitdiffstats
path: root/scripts/dm_event_systemd_red_hat.socket.in
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2012-06-21 08:41:52 -0400
committerPeter Rajnoha <prajnoha@redhat.com>2012-06-27 12:11:47 +0200
commit9a96f930a762418f1014f6a9da9546cb1f501f04 (patch)
tree5778438e3be18276533957917948c0395118c134 /scripts/dm_event_systemd_red_hat.socket.in
parentc8591b2ac7c99ea43e7f94f3dfb183019c2fed6e (diff)
downloadlvm2-9a96f930a762418f1014f6a9da9546cb1f501f04.tar.gz
lvm2-9a96f930a762418f1014f6a9da9546cb1f501f04.tar.xz
lvm2-9a96f930a762418f1014f6a9da9546cb1f501f04.zip
configure: run directory configuration cleanup
There were several hard-coded values for run directory around the code. Also, some tools are DM specific only, others are LVM specific and there was no distinction made here before. With this patch applied, we have this cleaned up a bit (subsystem in brackets, defaults in parentheses): [common] configurable PID_DIR (/var/run) lvm [lvm] configurable RUN_DIR (/var/run/lvm) configurable locking dir (/var/lock/lvm) clvmd [lvm] configurable pid file (PID_DIR/clvmd.pid) socket (RUN_DIR/clvmd.sock) lvmetad [lvm] configurable pid file (PID_DIR/lvmetad.pid) socket (RUN_DIR/lvmetad.socket) dm [dm] configurable DM_RUN_DIR (/var/run) cmirrord [dm] configurable pid file (PID_DIR/cmirrord.pid) dmeventd [dm] configurable pid file (PID_DIR/dmeventd.pid) server fifo (DM_RUN_DIR/dmeventd-server) client fifo (DM_RUN_DIR/dmeventd-client) The changes briefly: - added configure --with-default-pid-dir - added configure --with-default-dm-run-dir - added configure --with-lvmetad-pidfile - by default, using one common pid directory for everything (only lvmetad was not following this before)
Diffstat (limited to 'scripts/dm_event_systemd_red_hat.socket.in')
-rw-r--r--scripts/dm_event_systemd_red_hat.socket.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/dm_event_systemd_red_hat.socket.in b/scripts/dm_event_systemd_red_hat.socket.in
new file mode 100644
index 00000000..c6c480c0
--- /dev/null
+++ b/scripts/dm_event_systemd_red_hat.socket.in
@@ -0,0 +1,11 @@
+[Unit]
+Description=Device-mapper event daemon FIFOs
+DefaultDependencies=no
+
+[Socket]
+ListenFIFO=@DEFAULT_DM_RUN_DIR@/dmeventd-server
+ListenFIFO=@DEFAULT_DM_RUN_DIR@/dmeventd-client
+SocketMode=0600
+
+[Install]
+WantedBy=sockets.target