mirror of https://github.com/ceph/ceph
debian: do not use upstart to start/stop services
we dropped the support of upstart back in 2c755cef
. there is no need
to support it anymore.
Signed-off-by: Kefu Chai <tchaikov@gmail.com>
This commit is contained in:
parent
4103b566e4
commit
08fcf91bd5
|
@ -31,7 +31,6 @@ set -e
|
|||
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
|
||||
|
|
|
@ -5,7 +5,6 @@ set -e
|
|||
|
||||
case "$1" in
|
||||
remove)
|
||||
[ -x /sbin/stop ] && stop ceph-all || true
|
||||
invoke-rc.d ceph stop || {
|
||||
RESULT=$?
|
||||
if [ $RESULT != 100 ]; then
|
||||
|
|
|
@ -24,8 +24,6 @@ set -e
|
|||
|
||||
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
|
||||
|
|
|
@ -5,7 +5,6 @@ set -e
|
|||
|
||||
case "$1" in
|
||||
remove)
|
||||
[ -x /sbin/stop ] && stop ceph-mds-all || :
|
||||
invoke-rc.d ceph stop mds || {
|
||||
RESULT=$?
|
||||
if [ $RESULT != 100 ]; then
|
||||
|
|
|
@ -24,8 +24,6 @@ set -e
|
|||
|
||||
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
|
||||
|
|
|
@ -5,7 +5,6 @@ set -e
|
|||
|
||||
case "$1" in
|
||||
remove)
|
||||
[ -x /sbin/stop ] && stop ceph-mgr-all || :
|
||||
invoke-rc.d ceph stop mgr || {
|
||||
RESULT=$?
|
||||
if [ $RESULT != 100 ]; then
|
||||
|
|
|
@ -24,7 +24,7 @@ set -e
|
|||
|
||||
case "$1" in
|
||||
configure)
|
||||
[ -x /sbin/start ] && start ceph-mon-all || :
|
||||
:
|
||||
;;
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
:
|
||||
|
|
|
@ -5,7 +5,6 @@ set -e
|
|||
|
||||
case "$1" in
|
||||
remove)
|
||||
[ -x /sbin/stop ] && stop ceph-mon-all || true
|
||||
invoke-rc.d ceph stop mon || {
|
||||
RESULT=$?
|
||||
if [ $RESULT != 100 ]; then
|
||||
|
|
|
@ -25,7 +25,6 @@ set -e
|
|||
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)
|
||||
:
|
||||
|
|
|
@ -5,7 +5,6 @@ set -e
|
|||
|
||||
case "$1" in
|
||||
remove)
|
||||
[ -x /sbin/stop ] && stop ceph-osd-all || true
|
||||
invoke-rc.d ceph stop osd || {
|
||||
RESULT=$?
|
||||
if [ $RESULT != 100 ]; then
|
||||
|
|
|
@ -30,8 +30,6 @@ set -e
|
|||
|
||||
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
|
||||
|
|
|
@ -5,7 +5,6 @@ set -e
|
|||
|
||||
case "$1" in
|
||||
remove)
|
||||
[ -x /sbin/stop ] && stop radosgw-all || true
|
||||
invoke-rc.d radosgw stop || {
|
||||
RESULT=$?
|
||||
if [ $RESULT != 100 ]; then
|
||||
|
|
Loading…
Reference in New Issue