summaryrefslogtreecommitdiff
path: root/scripts/dm_event_systemd_red_hat.socket.in
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/dm_event_systemd_red_hat.socket.in
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/dm_event_systemd_red_hat.socket.in')
-rw-r--r--scripts/dm_event_systemd_red_hat.socket.in1
1 files changed, 1 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