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:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=kkHYCrmc2YHmee7RPLb+p1E7FGSCTewQDmhMOOQT11c=; b=ITJ5oETrVEuecO7U0KZ7ytzcGwNmXwzn/8kvWD7rPyPf9P7Jg10o456j2R4kbRDvuT 307zVfVEmh5bZX5JbgWu4BIAplb3qrUXqZaTUfDxXr+CuBQXDF0RwqvMunSn7dSwgxIR vo1pr5nPNVWaWdKdmeoXcwFDzCHxwMQFhZsJY= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=ar+xikGetlFLnzrmRD8RzZ35l7bCLV+rtcJwdH9YO5W9TaKNZlsQO83HBuViN5Gdvc BRkdNMgmHPs153yc9yfaLlZ5lvOyTAIjKsid6aMeXrutoI3pnPwm5rao1sQeHaTif0h2 KE6C0dWjMd7CRHmCccJGkqC6s9drZXneDLAX0= On Feb 3, 2009, at 05:43 , Rakesh Singhal wrote: Hi all, I have one query and I have not found any documentation on this. I wrote one plist and put it in LaunchDaemons folder. Now, to avoid rebooting the system I use "launchctl load /Library/LaunchDaemons/com.mycompany.mydaemon.plist" to start the daemon. It starts working properly. When I logout and log in again, it does not get started. If I reboot then it works fine. Do I need to modify plist file? or is there any other way to do it? or it behaves in this way only. Hello Rakesh, sudo launchctl load /Library/LaunchDaemons/com.mycompany.mydaemon.plist Jason _______________________________________________ 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... Testing machine is iMac 10.4.11 PPC. This almost certainly happens because you are staring the daemon in the user's process space. Since this is a system daemon, you should start it in the system namespace and in root's process space. Try using sudo to launch it: This should have the desired effect. Logging out the first time will no longer terminate the daemon process. This email sent to site_archiver@lists.apple.com
participants (1)
-
Jason Coco