Re: using launchctl in postflight scripts
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Keith #!/bin/sh _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... I need to start both a daemon and agent process using launchctl, but my postinstall/postupgrade scripts run as root. You can use the environment variables set for the script. My agent preinstall script is given below for example. if [ -f /Library/LaunchAgents/dawnAlarma.plist ]; then su $USER -c 'launchctl unload /Library/LaunchAgents/ com.buoy.dawnAlarma.plist' fi This email sent to site_archiver@lists.apple.com
participants (1)
-
Keith Duncan