Re: problem in launching the daemons
Re: problem in launching the daemons
- Subject: Re: problem in launching the daemons
- From: Eli Bach <email@hidden>
- Date: Mon, 2 Mar 2009 09:23:11 -0800
On Mar 2, 2009, at 5:11 AM, sandeep chaudhary wrote:
Hi all,
I am working on launching the daemons,which will run on background
continously. I have created a plist and put it into the /Library/
LaunchedDaemons. I have set the owner- root and group- wheel to the
plist.The plist will run application which is located on the
following locaton - "/library/Applications".
But I am not able to run the daemons.Here is my plist file -
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
">
<plist version="1.0">
<dict>
<key>Label</key>
<string>CXComServiceApp</string>
<key>OnDemand</key>
<true/>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/Applications/Cxtra/CXComServiceApp.app/Contents/MacOS/
CXComServiceApp</string>
</array>
</dict>
</plist>
Here CXComServiceApp is the application which i want to run as a
daemons.
What i am doing wrong? Could you tell me how can i run the daemons
in details. What are the terms and conditions which i am not
follwings.
Thanks
-sandeep
Use Console.app to look at the system log. That should give you some
idea of why it's failing.
Also, you can try:
sudo launchctl load <path to plist file>
launchctl should tell you why it decided not to load your daemon if it
fails.
And the path you listed in the plist doesn't match the path you
mention in your description.
Eli
_______________________________________________
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