From fae21f6aaddd9730b97df5435cf0c72b3bc2a6b6 Mon Sep 17 00:00:00 2001 From: Antonio Huete Jimenez Date: Wed, 7 Feb 2018 13:48:45 +0100 Subject: [PATCH] service: Add support for DragonFly BSD For now create a subclass of the FreeBsd class --- lib/ansible/modules/system/service.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index 1f48ba948a..b2ff5e11a8 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -1073,6 +1073,17 @@ class FreeBsdService(Service): return ret +class DragonFlyBsdService(FreeBsdService): + """ + This is the DragonFly BSD Service manipulation class - it uses the /etc/rc.conf + file for controlling services started at boot and the 'service' binary to + check status and perform direct service manipulation. + """ + + platform = 'DragonFly' + distribution = None + + class OpenBsdService(Service): """ This is the OpenBSD Service manipulation class - it uses rcctl(8) or