Facing problem with launch daemon on logout
Hi, I have created a launch daemon process. I can start the process using: launchctl load <plistfile> But when I log out, this daemon is getting killed and I see the log message in the console as: com.apple.launchd : (<process name>) Exited with code : 143 When we logout, only launch agent process should be stopped. But why is the daemon process exiting or getting stopped? This issue iam facing only with Mac 10.7 (Lion). In Mac 10.5 and 10.6 daemon process keeps running even after logout. Any help for this is highly appreciated. Thanks
On 3 May 2012, at 06:27, Nandini Vijayashankar wrote:
I can start the process using: launchctl load <plistfile>
Are you doing this from the command line? If so, you should run launchctl via sudo to force it to talk to the global launchd. If you're doing this programatically, things get more complex (-: Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
Iam not running through commandline. I have a plist file in /System/Library/LaunchDaemon.This plist file invokes a shell script which starts my daemon process Thanks
"Quinn "The Eskimo!"" <eskimo1@apple.com> 5/3/2012 2:59 PM >>>
On 3 May 2012, at 06:27, Nandini Vijayashankar wrote:
I can start the process using: launchctl load <plistfile>
Are you doing this from the command line? If so, you should run launchctl via sudo to force it to talk to the global launchd. If you're doing this programatically, things get more complex (-: Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware _______________________________________________ launchd-dev mailing list launchd-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
On 4 May 2012, at 05:09, Nandini Vijayashankar wrote:
Iam not running through commandline. I have a plist file in /System/Library/LaunchDaemon.This plist file invokes a shell script which starts my daemon process
Right. But how are you loading this job? Does the problem happen if you explicitly load the job (via launchctl load)? What about if the job is loaded implicitly (by restarting the computer)? Share and Enjoy -- Quinn "The Eskimo!" <http://www.apple.com/developer/> Apple Developer Relations, Developer Technical Support, Core OS/Hardware
participants (2)
-
Nandini Vijayashankar
-
Quinn "The Eskimo!"