summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-04-30 02:01:55 +0200
committerSage Weil <sage@inktank.com>2013-04-30 02:01:55 +0200
commit030bf8aaa15837f898e453161eeaf1d52fc5779d (patch)
treeb3bf42c93450b4f34b557d979aa86555a69453e5 /debian
parentMerge remote-tracking branch 'gh/wip-up' into next (diff)
downloadceph-030bf8aaa15837f898e453161eeaf1d52fc5779d.tar.xz
ceph-030bf8aaa15837f898e453161eeaf1d52fc5779d.zip
debian: only start/stop upstart jobs if upstart is present
This avoids errors on non-upstart distros (like wheezy). Signed-off-by: Sage Weil <sage@inktank.com>
Diffstat (limited to 'debian')
-rw-r--r--debian/ceph-mds.postinst2
-rw-r--r--debian/ceph-mds.prerm2
-rw-r--r--debian/ceph.postinst2
-rw-r--r--debian/ceph.prerm2
4 files changed, 4 insertions, 4 deletions
diff --git a/debian/ceph-mds.postinst b/debian/ceph-mds.postinst
index dfe02d2308e..7fcbf5c6230 100644
--- a/debian/ceph-mds.postinst
+++ b/debian/ceph-mds.postinst
@@ -20,7 +20,7 @@ set -e
case "$1" in
configure)
- start ceph-mds-all || :
+ [ -x /sbin/start ] && start ceph-mds-all || :
;;
abort-upgrade|abort-remove|abort-deconfigure)
:
diff --git a/debian/ceph-mds.prerm b/debian/ceph-mds.prerm
index 56d9e0128f1..c4af0994d94 100644
--- a/debian/ceph-mds.prerm
+++ b/debian/ceph-mds.prerm
@@ -1,5 +1,5 @@
#!/bin/sh
-stop ceph-mds-all || :
+[ -x /sbin/stop ] && stop ceph-mds-all || :
exit 0 \ No newline at end of file
diff --git a/debian/ceph.postinst b/debian/ceph.postinst
index 4edbf10d93b..090a91aa9bb 100644
--- a/debian/ceph.postinst
+++ b/debian/ceph.postinst
@@ -27,7 +27,7 @@ set -e
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)
:
diff --git a/debian/ceph.prerm b/debian/ceph.prerm
index 159a96e33c3..557a1dbdac0 100644
--- a/debian/ceph.prerm
+++ b/debian/ceph.prerm
@@ -1,5 +1,5 @@
#!/bin/sh
-stop ceph-all || :
+[ -x /sbin/stop ] && stop ceph-all || :
exit 0 \ No newline at end of file