Merge pull request #251 from davidfritzsche/patch-1

Add working status detection for pf on FreeBSD
i'm going to merge this to give you a usable workaround, still I consider this a bug in the init script.
reviewable/pr18780/r1
Brian Coca 10 years ago
commit 61f664bc47

@ -928,6 +928,9 @@ class FreeBsdService(Service):
def get_service_status(self): def get_service_status(self):
rc, stdout, stderr = self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, 'onestatus', self.arguments)) rc, stdout, stderr = self.execute_command("%s %s %s %s" % (self.svc_cmd, self.name, 'onestatus', self.arguments))
if self.name == "pf":
self.running = "Enabled" in stdout
else:
if rc == 1: if rc == 1:
self.running = False self.running = False
elif rc == 0: elif rc == 0:

Loading…
Cancel
Save