From c0a3ddc6c3a94ef93261c08ee0894a7f9505ea2c Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 30 May 2018 14:36:00 -0400 Subject: [PATCH] qa/workunits: remove ceph-detect-init from ceph-helpers-root.sh Signed-off-by: Alfredo Deza --- qa/workunits/ceph-helpers-root.sh | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/qa/workunits/ceph-helpers-root.sh b/qa/workunits/ceph-helpers-root.sh index c54dbde7adb..d4558bba196 100755 --- a/qa/workunits/ceph-helpers-root.sh +++ b/qa/workunits/ceph-helpers-root.sh @@ -47,20 +47,8 @@ function control_osd() { local action=$1 local id=$2 - local init=$(ceph-detect-init) + sudo systemctl $action ceph-osd@$id - case $init in - upstart) - sudo service ceph-osd $action id=$id - ;; - systemd) - sudo systemctl $action ceph-osd@$id - ;; - *) - echo ceph-detect-init returned an unknown init system: $init >&2 - return 1 - ;; - esac return 0 } -- 2.39.5