From: Sage Weil Date: Thu, 14 Feb 2013 05:47:30 +0000 (-0800) Subject: debian: start/stop ceph-all event on install/uninstall X-Git-Tag: v0.56.5~5^2~68 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e1624e4626b4e67909f3bb83920c99ad323ed083;p=ceph.git 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) --- diff --git a/debian/ceph.postinst b/debian/ceph.postinst index 1f9469d8f6c1..574b2c7cfdb3 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 000000000000..159a96e33c39 --- /dev/null +++ b/debian/ceph.prerm @@ -0,0 +1,5 @@ +#!/bin/sh + +stop ceph-all || : + +exit 0 \ No newline at end of file