Add dinit as a service_mgr (#83489)

pull/83556/head
Jan Christian Grünhage 5 months ago committed by GitHub
parent 43346f1fdc
commit 83a0975611
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,3 @@
---
minor_changes:
- service_mgr - add support for dinit service manager (https://github.com/ansible/ansible/pull/83489).

@ -144,6 +144,8 @@ class ServiceMgrFactCollector(BaseFactCollector):
service_mgr_name = 'systemd' service_mgr_name = 'systemd'
elif os.path.exists('/etc/init.d/'): elif os.path.exists('/etc/init.d/'):
service_mgr_name = 'sysvinit' service_mgr_name = 'sysvinit'
elif os.path.exists('/etc/dinit.d/'):
service_mgr_name = 'dinit'
if not service_mgr_name: if not service_mgr_name:
# if we cannot detect, fallback to generic 'service' # if we cannot detect, fallback to generic 'service'

Loading…
Cancel
Save