From 554b41b171eab997038e83928c462027246c24f4 Mon Sep 17 00:00:00 2001 From: Guilhem Lettron Date: Mon, 27 May 2013 12:41:53 +0200 Subject: [PATCH] Remove mon socket in post-stop If ceph-mon segfault, socket file isn't removed. By adding a remove in post-stop, upstart clean run directory properly. Signed-off-by: Guilhem Lettron --- src/upstart/ceph-mon.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/upstart/ceph-mon.conf b/src/upstart/ceph-mon.conf index 17fd11b6a24d..0279f15c5a8b 100644 --- a/src/upstart/ceph-mon.conf +++ b/src/upstart/ceph-mon.conf @@ -24,3 +24,8 @@ export id #usage "cluster = name of cluster (defaults to 'ceph'); id = monitor instance id" exec /usr/bin/ceph-mon --cluster="${cluster:-ceph}" -i "$id" -f + +post-stop script + # Cleanup socket in case of segfault + rm -f "/var/run/ceph/ceph-mon.$id.asok" +end script -- 2.47.3