]> git.proxmox.com Git - ceph.git/blob - ceph/src/ceph-detect-init/ceph_detect_init/rhel/__init__.py
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / ceph-detect-init / ceph_detect_init / rhel / __init__.py
1 distro = None
2 release = None
3 codename = None
4
5
6 def choose_init():
7 """Select a init system
8
9 Returns the name of a init system (upstart, sysvinit ...).
10 """
11 if release and int(release.split('.')[0]) >= 7:
12 return 'systemd'
13 return 'sysvinit'