Skip to content

Commit

Permalink
Merge pull request ceph#55437 from tchaikov/ehh-upstart
Browse files Browse the repository at this point in the history
debian: do not use upstart to start/stop services

Reviewed-by: Casey Bodley <[email protected]>
  • Loading branch information
tchaikov authored May 8, 2024
2 parents 9b6d380 + 08fcf91 commit 720f8e9
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 15 deletions.
1 change: 0 additions & 1 deletion debian/ceph-base.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion debian/ceph-base.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions debian/ceph-mds.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion debian/ceph-mds.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions debian/ceph-mgr.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion debian/ceph-mgr.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion debian/ceph-mon.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set -e

case "$1" in
configure)
[ -x /sbin/start ] && start ceph-mon-all || :
:
;;
abort-upgrade|abort-remove|abort-deconfigure)
:
Expand Down
1 change: 0 additions & 1 deletion debian/ceph-mon.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion debian/ceph-osd.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
:
Expand Down
1 change: 0 additions & 1 deletion debian/ceph-osd.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions debian/radosgw.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion debian/radosgw.prerm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 720f8e9

Please sign in to comment.