]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
debian: start/stop ceph-all event on install/uninstall
authorSage Weil <sage@inktank.com>
Thu, 14 Feb 2013 05:47:30 +0000 (21:47 -0800)
committerSage Weil <sage@inktank.com>
Fri, 26 Apr 2013 20:40:01 +0000 (13:40 -0700)
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 <sage@inktank.com>
(cherry picked from commit b7b9af5c0d531dcee7ce9b10043a29b0a1b31f47)

debian/ceph.postinst
debian/ceph.prerm [new file with mode: 0644]

index 1f9469d8f6c157815e453c599e2941a1d8297d9c..574b2c7cfdb306247cea5475fc29e8482bbbf524 100644 (file)
@@ -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 (file)
index 0000000..159a96e
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+stop ceph-all || :
+
+exit 0
\ No newline at end of file