summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Rajnoha <prajnoha@redhat.com>2014-06-13 15:45:25 +0200
committerPeter Rajnoha <prajnoha@redhat.com>2014-06-13 15:45:25 +0200
commitfea8abe56ae506e8c924a317cd701e159aab824c (patch)
tree90626eab7775d6eef3ca3385af80cbf0742506a0 /scripts
parent4c9fbe048fa9a7b9c21ef96aa431a28151acdb1d (diff)
downloadlvm2-fea8abe56ae506e8c924a317cd701e159aab824c.tar.gz
systemd: use RemoveOnStop for dm-event.socket and lvm2-lvmetad.socket
Systemd version 214 introduced new "RemoveOnStop" option for socket units to remove the socket/FIFO when the particular unit is stopped. Also https://bugzilla.redhat.com/show_bug.cgi?id=802748.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dm_event_systemd_red_hat.socket.in1
-rw-r--r--scripts/lvm2_lvmetad_systemd_red_hat.socket.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/dm_event_systemd_red_hat.socket.in b/scripts/dm_event_systemd_red_hat.socket.in
index b27c68d94..80bcbb988 100644
--- a/scripts/dm_event_systemd_red_hat.socket.in
+++ b/scripts/dm_event_systemd_red_hat.socket.in
@@ -7,6 +7,7 @@ DefaultDependencies=no
ListenFIFO=@DEFAULT_DM_RUN_DIR@/dmeventd-server
ListenFIFO=@DEFAULT_DM_RUN_DIR@/dmeventd-client
SocketMode=0600
+RemoveOnStop=true
[Install]
WantedBy=sockets.target
diff --git a/scripts/lvm2_lvmetad_systemd_red_hat.socket.in b/scripts/lvm2_lvmetad_systemd_red_hat.socket.in
index 071fd6412..9575f98a6 100644
--- a/scripts/lvm2_lvmetad_systemd_red_hat.socket.in
+++ b/scripts/lvm2_lvmetad_systemd_red_hat.socket.in
@@ -6,6 +6,7 @@ DefaultDependencies=no
[Socket]
ListenStream=@DEFAULT_RUN_DIR@/lvmetad.socket
SocketMode=0600
+RemoveOnStop=true
[Install]
WantedBy=sysinit.target