]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
qa/workunits: remove ceph-detect-init from ceph-helpers-root.sh
authorAlfredo Deza <adeza@redhat.com>
Wed, 30 May 2018 18:36:00 +0000 (14:36 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 13 Jun 2018 19:16:23 +0000 (15:16 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
qa/workunits/ceph-helpers-root.sh

index c54dbde7adb11bf344a54430c05da13a69f31acc..d4558bba196a96a32ab06f0263c29de1a2cf7e3a 100755 (executable)
@@ -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
 }