diff options
author | Guilhem Lettron <guilhem+github@lettron.fr> | 2013-05-27 12:41:53 +0200 |
---|---|---|
committer | Guilhem Lettron <guilhem@lettron.fr> | 2013-05-28 10:35:24 +0200 |
commit | 554b41b171eab997038e83928c462027246c24f4 (patch) | |
tree | 9c49beccd9ea76c2adfbfa83e3c006064809742c /src | |
parent | 615b54c6e4153d006456eee56de2b75ee29a4513 (diff) | |
download | ceph-554b41b171eab997038e83928c462027246c24f4.tar.gz |
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 <guilhem@lettron.fr>
Diffstat (limited to 'src')
-rw-r--r-- | src/upstart/ceph-mon.conf | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/upstart/ceph-mon.conf b/src/upstart/ceph-mon.conf index 17fd11b6a24..0279f15c5a8 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 |