Skip to content

Commit cf9aa7a

Browse files
author
Sage Weil
committed
debian: guard upstart {start,stop} with -x check
Sigh. Signed-off-by: Sage Weil <[email protected]>
1 parent a400105 commit cf9aa7a

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

debian/ceph-mds.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ set -e
2121

2222
case "$1" in
2323
configure)
24-
start ceph-mds-all || true
24+
[ -x /sbin/start ] && start ceph-mds-all || :
2525
;;
2626
abort-upgrade|abort-remove|abort-deconfigure)
2727
:

debian/ceph-mds.prerm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55

66
case "$1" in
77
remove)
8-
stop ceph-mds-all || true
8+
[ -x /sbin/stop ] && stop ceph-mds-all || :
99
invoke-rc.d ceph stop mds || {
1010
RESULT=$?
1111
if [ $RESULT != 100 ]; then

debian/ceph.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set -e
2828
case "$1" in
2929
configure)
3030
rm -f /etc/init/ceph.conf
31-
start ceph-all || true
31+
[ -x /sbin/start ] && start ceph-all || :
3232
;;
3333
abort-upgrade|abort-remove|abort-deconfigure)
3434
:

debian/ceph.prerm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55

66
case "$1" in
77
remove)
8-
stop ceph-all || true
8+
[ -x /sbin/stop ] && stop ceph-all || true
99
invoke-rc.d ceph stop || {
1010
RESULT=$?
1111
if [ $RESULT != 100 ]; then

debian/radosgw.postinst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set -e
2727

2828
case "$1" in
2929
configure)
30-
start radosgw-all || true
30+
[ -x /sbin/start ] && start radosgw-all || :
3131
;;
3232
abort-upgrade|abort-remove|abort-deconfigure)
3333
:

debian/radosgw.prerm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55

66
case "$1" in
77
remove)
8-
stop radosgw-all || true
8+
[ -x /sbin/stop ] && stop radosgw-all || true
99
invoke-rc.d radosgw stop || {
1010
RESULT=$?
1111
if [ $RESULT != 100 ]; then

0 commit comments

Comments
 (0)