mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
FreeBSD startup scripts (rc) supports optional arguments.
This commit is contained in:
parent
c601e53fce
commit
30b648e48c
1 changed files with 2 additions and 2 deletions
|
@ -600,7 +600,7 @@ class FreeBsdService(Service):
|
|||
self.module.fail_json(msg='unable to find service binary')
|
||||
|
||||
def get_service_status(self):
|
||||
rc, stdout, stderr = self.execute_command("%s %s %s" % (self.svc_cmd, self.name, 'onestatus'))
|
||||
rc, stdout, stderr = self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, 'onestatus', self.arguments))
|
||||
if rc == 1:
|
||||
self.running = False
|
||||
elif rc == 0:
|
||||
|
@ -630,7 +630,7 @@ class FreeBsdService(Service):
|
|||
if self.action is "reload":
|
||||
self.action = "onereload"
|
||||
|
||||
return self.execute_command("%s %s %s" % (self.svc_cmd, self.name, self.action))
|
||||
return self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, self.action, self.arguments))
|
||||
|
||||
# ===========================================
|
||||
# Subclass: OpenBSD
|
||||
|
|
Loading…
Reference in a new issue