Changeset 5523

Show
Ignore:
Timestamp:
11/02/09 13:29:10 (3 weeks ago)
Author:
kisielk
Message:

Added checks for Snow Leopard (10.6) to launchd client tool

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/bcfg2/src/lib/Client/Tools/launchd.py

    r5522 r5523  
    6060        # launchctl output changed in 10.5 
    6161        # It is now three columns, with the last column being the name of the # service 
    62         if self.os_version().startswith('10.5'): 
     62        version = self.os_version() 
     63        if version.startswith('10.5') or version.startswith('10.6'): 
    6364            services = [s.split()[-1] for s in services] 
    6465        if entry.get('name') in services:#doesn't check if non-spawning services are Started