summaryrefslogtreecommitdiffstats
path: root/src/lib/Client
diff options
context:
space:
mode:
authorKamil Kisiel <kamil@kamilkisiel.net>2009-11-02 19:29:10 +0000
committerKamil Kisiel <kamil@kamilkisiel.net>2009-11-02 19:29:10 +0000
commitba729b554d23e855da068887fa32553e27d6856f (patch)
tree59ea209fed12be975337fafa835d516af9b71ba6 /src/lib/Client
parent6e851ee0526ab732cc05968b6ba7cc4ccee908f9 (diff)
downloadbcfg2-ba729b554d23e855da068887fa32553e27d6856f.tar.gz
bcfg2-ba729b554d23e855da068887fa32553e27d6856f.tar.bz2
bcfg2-ba729b554d23e855da068887fa32553e27d6856f.zip
Added checks for Snow Leopard (10.6) to launchd client tool
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5523 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client')
-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'