]> git.proxmox.com Git - ceph.git/blame - ceph/src/ceph-detect-init/ceph_detect_init/centos/__init__.py
bump version to 12.2.12-pve1
[ceph.git] / ceph / src / ceph-detect-init / ceph_detect_init / centos / __init__.py
CommitLineData
7c673cae
FG
1distro = None
2release = None
3codename = None
4
5
6def 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'