#!/bin/sh
+# vim: set noet ts=8:
# postinst script for ceph-mds
#
# see: dh_installdeb(1)
case "$1" in
configure)
- [ -x /sbin/start ] && start ceph-mds-all || :
+ invoke-rc.d ceph-mds-all start || {
+ RESULT=$?
+ # Ignore if ceph-mds-all upstart config does not
+ # exist or upstart is not in use
+ if [ $RESULT != 100 ]; then
+ exit $RESULT
+ fi
+ }
;;
abort-upgrade|abort-remove|abort-deconfigure)
:
#!/bin/sh
+# vim: set noet ts=8:
-[ -x /sbin/stop ] && stop ceph-mds-all || :
+set -e
-exit 0
\ No newline at end of file
+invoke-rc.d ceph-mds-all stop || {
+ RESULT=$?
+ # Ignore if ceph-all upstart config does not
+ # exist or upstart is not in use
+ if [ $RESULT != 100 ]; then
+ exit $RESULT
+ fi
+}
+
+#DEBHELPER#
+
+exit 0
#!/bin/sh
+# vim: set noet ts=8:
# postinst script for ceph
#
# see: dh_installdeb(1)
case "$1" in
configure)
rm -f /etc/init/ceph.conf
- [ -x /sbin/start ] && start ceph-all || :
+ invoke-rc.d ceph-all start || {
+ RESULT=$?
+ # Ignore if ceph-all upstart config does not
+ # exist or upstart is not in use
+ if [ $RESULT != 100 ]; then
+ exit $RESULT
+ fi
+ }
;;
abort-upgrade|abort-remove|abort-deconfigure)
:
#!/bin/sh
+# vim: set noet ts=8:
-[ -x /sbin/stop ] && stop ceph-all || :
+set -e
-exit 0
\ No newline at end of file
+invoke-rc.d ceph-all stop || {
+ RESULT=$?
+ # Ignore if ceph-all upstart config does not
+ # exist or upstart is not in use
+ if [ $RESULT != 100 ]; then
+ exit $RESULT
+ fi
+}
+
+#DEBHELPER#
+
+exit 0