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:
Kefu Chai 2024-02-04 00:12:09 +08:00
parent 4103b566e4
commit 08fcf91bd5
12 changed files with 1 additions and 15 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -24,7 +24,7 @@ set -e
case "$1" in
configure)
[ -x /sbin/start ] && start ceph-mon-all || :
:
;;
abort-upgrade|abort-remove|abort-deconfigure)
:

View File

@ -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

View File

@ -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)
:

View File

@ -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

View File

@ -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

View File

@ -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