X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fdebian%2Fceph-osd.prerm;fp=src%2Fceph%2Fdebian%2Fceph-osd.prerm;h=40f07b62152e502da55ce40f7a2620bcce29efae;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/debian/ceph-osd.prerm b/src/ceph/debian/ceph-osd.prerm new file mode 100644 index 0000000..40f07b6 --- /dev/null +++ b/src/ceph/debian/ceph-osd.prerm @@ -0,0 +1,23 @@ +#!/bin/sh +# vim: set noet ts=8: + +set -e + +case "$1" in + remove) + [ -x /sbin/stop ] && stop ceph-osd-all || true + invoke-rc.d ceph stop osd || { + RESULT=$? + if [ $RESULT != 100 ]; then + exit $RESULT + fi + } + ;; + + *) + ;; +esac + +#DEBHELPER# + +exit 0