Re: Launchctl question
Re: Launchctl question
- Subject: Re: Launchctl question
- From: Shawn Erickson <email@hidden>
- Date: Mon, 30 Mar 2009 13:41:12 -0700
On Mon, Mar 30, 2009 at 1:32 PM, Tim Murison
<email@hidden> wrote:
> Hi,
>
> I'm trying to restart my launch agent running as a user from a script
> running as root.
>
> I tried the obvious:
> sudo -u my_user launchctl load /Library/LaunchAgents/myproduct.plist
>
> and I get "Socket is not connected."
>
> I've googled around a bit and found many people with the same problem, but
> no solutions. Does anyone here know a way around this?
Consider using the bsexec option of launchctl.
http://developer.apple.com/DOCUMENTATION/DARWIN/Reference/ManPages/man1/launchctl.1.html
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden