Re: using launchctl in postflight scripts
Re: using launchctl in postflight scripts
- Subject: Re: using launchctl in postflight scripts
- From: Keith Duncan <email@hidden>
- Date: Tue, 19 Feb 2008 23:57:26 +0000
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.
Keith
#!/bin/sh
if [ -f /Library/LaunchAgents/dawnAlarma.plist ]; then
su $USER -c 'launchctl unload /Library/LaunchAgents/
com.buoy.dawnAlarma.plist'
fi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden