case "$1" in
configure)
rm -f /etc/init/ceph.conf
- [ -x /sbin/start ] && start ceph-all || :
# adjust file and directory permissions
for DIR in /var/lib/ceph/* ; do
case "$1" in
remove)
- [ -x /sbin/stop ] && stop ceph-all || true
invoke-rc.d ceph stop || {
RESULT=$?
if [ $RESULT != 100 ]; then
case "$1" in
configure)
- [ -x /sbin/start ] && start ceph-mds-all || :
-
if ! dpkg-statoverride --list /var/lib/ceph/mds >/dev/null
then
chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/mds
case "$1" in
remove)
- [ -x /sbin/stop ] && stop ceph-mds-all || :
invoke-rc.d ceph stop mds || {
RESULT=$?
if [ $RESULT != 100 ]; then
case "$1" in
configure)
- [ -x /sbin/start ] && start ceph-mgr-all || :
-
if ! dpkg-statoverride --list /var/lib/ceph/mgr >/dev/null
then
chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/mgr
case "$1" in
remove)
- [ -x /sbin/stop ] && stop ceph-mgr-all || :
invoke-rc.d ceph stop mgr || {
RESULT=$?
if [ $RESULT != 100 ]; then
case "$1" in
configure)
- [ -x /sbin/start ] && start ceph-mon-all || :
+ :
;;
abort-upgrade|abort-remove|abort-deconfigure)
:
case "$1" in
remove)
- [ -x /sbin/stop ] && stop ceph-mon-all || true
invoke-rc.d ceph stop mon || {
RESULT=$?
if [ $RESULT != 100 ]; then
case "$1" in
configure)
[ -x /etc/init.d/procps ] && invoke-rc.d procps restart || :
- [ -x /sbin/start ] && start ceph-osd-all || :
;;
abort-upgrade|abort-remove|abort-deconfigure)
:
case "$1" in
remove)
- [ -x /sbin/stop ] && stop ceph-osd-all || true
invoke-rc.d ceph stop osd || {
RESULT=$?
if [ $RESULT != 100 ]; then
case "$1" in
configure)
- [ -x /sbin/start ] && start radosgw-all || :
-
if ! dpkg-statoverride --list /var/lib/ceph/radosgw >/dev/null
then
chown $SERVER_USER:$SERVER_GROUP /var/lib/ceph/radosgw
case "$1" in
remove)
- [ -x /sbin/stop ] && stop radosgw-all || true
invoke-rc.d radosgw stop || {
RESULT=$?
if [ $RESULT != 100 ]; then