This avoids errors on non-upstart distros (like wheezy).
Signed-off-by: Sage Weil <sage@inktank.com>
case "$1" in
configure)
- start ceph-mds-all || :
+ [ -x /sbin/start ] && start ceph-mds-all || :
;;
abort-upgrade|abort-remove|abort-deconfigure)
:
#!/bin/sh
-stop ceph-mds-all || :
+[ -x /sbin/stop ] && stop ceph-mds-all || :
exit 0
\ No newline at end of file
case "$1" in
configure)
rm -f /etc/init/ceph.conf
- start ceph-all || :
+ [ -x /sbin/start ] && start ceph-all || :
;;
abort-upgrade|abort-remove|abort-deconfigure)
:
#!/bin/sh
-stop ceph-all || :
+[ -x /sbin/stop ] && stop ceph-all || :
exit 0
\ No newline at end of file