X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fceph-detect-init%2Fceph_detect_init%2Fdebian%2F__init__.py;fp=src%2Fceph%2Fsrc%2Fceph-detect-init%2Fceph_detect_init%2Fdebian%2F__init__.py;h=0000000000000000000000000000000000000000;hb=7da45d65be36d36b880cc55c5036e96c24b53f00;hp=94217cdfa263b554c8446cfbacebc7dd4654654f;hpb=691462d09d0987b47e112d6ee8740375df3c51b2;p=stor4nfv.git diff --git a/src/ceph/src/ceph-detect-init/ceph_detect_init/debian/__init__.py b/src/ceph/src/ceph-detect-init/ceph_detect_init/debian/__init__.py deleted file mode 100644 index 94217cd..0000000 --- a/src/ceph/src/ceph-detect-init/ceph_detect_init/debian/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -import os -import subprocess - -distro = None -release = None -codename = None - - -def choose_init(): - """Select a init system - - Returns the name of a init system (upstart, sysvinit ...). - """ - # yes, this is heuristics - if os.path.isdir('/run/systemd/system'): - return 'systemd' - if not subprocess.call('. /lib/lsb/init-functions ; init_is_upstart', - shell=True): - return 'upstart' - if os.path.isfile('/sbin/init') and not os.path.islink('/sbin/init'): - return 'sysvinit'