summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/Client/Tools/launchd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/launchd.py b/src/lib/Client/Tools/launchd.py
index ba2c3086f..bcdb50df8 100644
--- a/src/lib/Client/Tools/launchd.py
+++ b/src/lib/Client/Tools/launchd.py
@@ -59,7 +59,8 @@ class launchd(Bcfg2.Client.Tools.Tool):
services = []
# launchctl output changed in 10.5
# It is now three columns, with the last column being the name of the # service
- if self.os_version().startswith('10.5'):
+ version = self.os_version()
+ if version.startswith('10.5') or version.startswith('10.6'):
services = [s.split()[-1] for s in services]
if entry.get('name') in services:#doesn't check if non-spawning services are Started
return entry.get('status') == 'on'