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>
(cherry picked from commit
554b41b171eab997038e83928c462027246c24f4)
#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