site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=UOcAjQV7K3WZvXtjObzPWx71H2tTFo3wMGKpvfTzfI4=; b=nX7tqVgoERlzv0q39HBcZGjTdl3FF9fVlNEEku2mluIXdhAgHqPvWru1CYRyu1yXv5 ytdkA1oQJ8ScBwRQbhHBVjZzHJzrpjX8nrwsnuxKKN59Y6VnxZugmo4DAtHaCWNvjX71 i3cLE0xQAW5qu0Zmrw9HPZkCoIj9dcu15t1gs= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=MHpT/SLaMU6XNJiK5kf8WTsNB2SXJOfctg2E2f96MY4CH98SC5FRyY4OAdP+65PF9k mx2P4NrhiB6BLXyhEbXvbZux90w2iGIGpDVCGATnlFOyK1tZFelKTm93JVirQQA45YOc 0gJTrerbnKcBj1KxRHAg5+xNX8tqQIEQwQAUY= On Mon, Mar 30, 2009 at 1:32 PM, Tim Murison <tim.murison@radialpoint.com> 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/laun... -Shawn _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com