Upgrade BES Client from SystemStarter to launchd Start Up Mechanism
| 0 Votes |
Description
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
| 449 | |
| Upgrade BES Client from SystemStarter to launchd Start Up Mechanism | |
| Common Tasks | |
| 0 | |
| BigFix | |
| <Unspecified> | |
| Low | |
| 10/9/2008 12:00:00 AM | |
| BES mechanism SystemStarter Mac launchd | |
| besSupport on 10/17/2012 1:15:30 PM | |
| danielheth on 10/17/2012 1:15:30 PM | |
| 5585 Views / 3 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Relevance
| Used in 223 fixlets | * Results in a true/false |
(if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
version of client >= "5.1"
| Used in 12 fixlets | * Results in a true/false |
(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 |
(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 |
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
appendfileLabel
appendfilecom.bigfix.BESAgent
appendfileOnDemand
appendfile
appendfileProgramArguments
appendfile
appendfile/Library/BESAgent/BESAgent.app/Contents/MacOS/BESAgent
appendfile-noservice
appendfile
appendfileWorkingDirectory
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: |

