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:content-type :content-transfer-encoding; bh=0YJxU4JOl32v3p2XcXJCOrLFGWKl1OGmnUfa5ylA0Iw=; b=Gm1bmgTUxn9+THraum7FRRWjV8XIYgw6j8lUcndjIVMHuF+YE0SLiyCQEq3cPQctJD kx1JMdnK90uxzGjebrN9AkMqpbljwzIM6UwEHJibWXXhkiCZMqxXMBtHqYTTyNeMHjul rIDPJshgMB4dQ1KQXoqCeMjHQcb5wd8O61Jd8= 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 :content-type:content-transfer-encoding; b=oXPTxjXGNURXxuE4JRvsTa7FdI5iThm6sR0umrLnagVRKQOPXjl+/e7/3wBeVRLdT6 ddb4kpIhUszlkrBJD+MwMuIYvxtNPDb7Y9YDnr3Y8bP3j6A4bl2LHLr5iPevAM4f7Nys ikthKzvvLMQePKNKy4XaNoGT0apdFjmrNwdjU= Hi Axel, Thanks. The plist file is: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.mycompany.mydaemond</string> <key>OnDemand</key> <true/> <key>ProgramArguments</key> <array> <string>/Library/Application Support/MyFolder/MyDaemon</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist> As you wrote daemons (/Library/LaunchDaemons) should not depend, it is right. Infact it wroks properly if I reboot the system. But I want to avoid to reboot the system only for daemon, so I use "launchctl load /Library/LaunchDaemons/com.mycompany.mydaemond.plist" to make it work. It works fine but when I log out, it doesnt work. I think, it should not get affected even using launchctl load command cause it is daemon. Regards rksinghal On Tue, Feb 3, 2009 at 6:41 PM, Axel Luttgens <luttgens@fusl.ac.be> wrote:
Le 3 févr. 09 à 11:43, Rakesh Singhal a écrit :
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.
Hello Rakesh,
System daemons (the ones started from plists found in /System/Library/LaunchDaemons and /Library/LaunchDaemons) do not depend on the user logging in or out; only user agents (the ones started from plists found in /System/Library/LaunchAgents, /Library/LaunchAgents and ~/Library/LaunchAgents) do. But note that user agents never were fully functional with Tiger.
If you haven't already done so, perhaps could you have a look at:
as well as at the man pages for launchd(8) and launchd.plist(5).
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.
Could you tell us a bit more about what you want to achieve? And post your plist here?
Testing machine is iMac 10.4.11 PPC.
As said above, this is an important point. ;-)
HTH, Axel
_______________________________________________ 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
participants (1)
-
Rakesh Singhal