Upgrade BES Client from SystemStarter to launchd Start Up Mechanism
Log In or Register to download the BES file, and more.

0 Votes

Description

As of Mac OS 10.4.0 the preferred start up mechanism for system services is now launchd, BES client releases of version 7.1 or greater will take advantage of this mechanism, if possible. However BES clients installed on an older version of Mac OS that was then later upgraded will continue to use the old start up mechanism. This fixlet message will modify the BES client to use the new launchd mechanism on computers where it is available.

Note: It is strongly suggested that this action be taken on all relevant computers as the SystemStarter mechanism may be deprecated in the future.

Property Details

ID449
TitleUpgrade BES Client from SystemStarter to launchd Start Up Mechanism
CategoryCommon Tasks
Download Size0
SourceBigFix
Source ID<Unspecified>
Source SeverityLow
Source Release Date10/9/2008 12:00:00 AM
KeywordsBES mechanism SystemStarter Mac launchd
Added by on 10/17/2012 1:15:30 PM
Last Modified by on 10/17/2012 1:15:30 PM
Counters 5585 Views / 3 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 223 fixlets   * Results in a true/false
Show indented relevance
(if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
Used in 92 fixlets and 24 analyses   * Results in a true/false
Show indented relevance
version of client >= "5.1"
Used in 12 fixlets   * Results in a true/false
Show indented relevance
(if (version of client >= "8.0") then (mac of it) else (name of it starts with "Mac OS X")) of operating system
Used in 1 fixlet   * Results in a true/false
Show indented relevance
(version of client >= "7.1") AND (exists folder "/Library/StartupItems/BESAgent/BESAgent.app") AND (system version >= "10.4")
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists file "/Library/LaunchDaemons/BESAgentDaemon.plist"

Actions

Action 1 (default)

Action Link Click here to upgrade the client's start up mechanism.
Script Type BigFix Action Script
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile "1.0" encoding="UTF-8"?>
appendfile "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
appendfile "1.0">
appendfile
appendfile     Label
appendfile     com.bigfix.BESAgent
appendfile     OnDemand
appendfile     
appendfile     ProgramArguments
appendfile     
appendfile         /Library/BESAgent/BESAgent.app/Contents/MacOS/BESAgent
appendfile         -noservice
appendfile     
appendfile     WorkingDirectory
appendfile     /Library/BESAgent/BESAgent.app/Contents/MacOS
appendfile
appendfile
move "{(client folder of current site as string) & "/__appendfile"}" "{(client folder of current site as string) & "/BESAgentDaemon.plist"}"
appendfile #!/bin/sh
appendfile /sbin/SystemStarter stop BESAgent
appendfile sleep 5
appendfile mv "/Library/StartupItems/BESAgent" "/Library/"
appendfile rm "/Library/StartupItems/BESAgent/StartupParameters.plist"
appendfile mv "{(client folder of current site as string) & "/BESAgentDaemon.plist"}" "/Library/LaunchDaemons/"
appendfile chmod 444 "/Library/LaunchDaemons//BESAgentDaemon.plist"
appendfile /bin/launchctl load /Library/LaunchDaemons/BESAgentDaemon.plist
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run {"/bin/sh -c %22trap '' 15;'" & (client folder of current site as string) & "/__appendfile'%22"}
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!