From e1624e4626b4e67909f3bb83920c99ad323ed083 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 13 Feb 2013 21:47:30 -0800 Subject: [PATCH] debian: start/stop ceph-all event on install/uninstall This helps us avoid the confusing situation with upstart where an individual daemon job is running (like ceph-osd id=2) but the container jobs ceph-osd-all and ceph-all are not. Signed-off-by: Sage Weil (cherry picked from commit b7b9af5c0d531dcee7ce9b10043a29b0a1b31f47) --- debian/ceph.postinst | 1 + debian/ceph.prerm | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 debian/ceph.prerm diff --git a/debian/ceph.postinst b/debian/ceph.postinst index 1f9469d8f6c15..574b2c7cfdb30 100644 --- a/debian/ceph.postinst +++ b/debian/ceph.postinst @@ -27,6 +27,7 @@ set -e case "$1" in configure) rm -f /etc/init/ceph.conf + start ceph-osd-all ;; abort-upgrade|abort-remove|abort-deconfigure) : diff --git a/debian/ceph.prerm b/debian/ceph.prerm new file mode 100644 index 0000000000000..159a96e33c391 --- /dev/null +++ b/debian/ceph.prerm @@ -0,0 +1,5 @@ +#!/bin/sh + +stop ceph-all || : + +exit 0 \ No newline at end of file -- 2.39.5