10 """Select a init system
12 Returns the name of a init system (upstart, sysvinit ...).
14 # yes, this is heuristics
15 if os.path.isdir('/run/systemd/system'):
17 if not subprocess.call('. /lib/lsb/init-functions ; init_is_upstart',
20 if os.path.isfile('/sbin/init') and not os.path.islink('/sbin/init'):