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=AU8g0DcBmhHYIO+E6CXNJjfNWQHxrJ6PgMftnu9qO9g=; b=cjL6NSF/DRQaFgxjXRO6pClD9rUO9xf6PCMgBxOx0THJHJHn6VFP9jmVYJOtDGZWjI OMvCZYYP0CxmdZhH2VsELag9rwS3h8yZNAFEJxoVKVPt66UpIb+LzOI/X7wcA8F7HdIe Vo6cSgioy1b5mwTSwj0yHVE2UanI9Nd1KSm9Y= 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=OvZ+G27UtEzIx36QtgumLNSjAWj2binONrgl5jdGfOApdiXewMEwQnQMyzSM4UJaYM A0fvrWkctcYW4/qcjtB6be+i9aX7CZXs+zKdFHa6j6NHd3XLINjsjAtl142zCjT46y5b rJfT+94P/9HlUdWyVdAWZVp8onm4z5VX9e8u0= Hi, I am starting in root's process space and it starts also but logging out is terminating the daemon process. If I reboot the system then logging out does not terminate the daemon process. Machine is iMac 10.4.11. Regards rksinghal On Tue, Feb 3, 2009 at 8:54 PM, Jason Coco <jason.coco@gmail.com> wrote:
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.
Testing machine is iMac 10.4.11 PPC.
Hello Rakesh,
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:
sudo launchctl load /Library/LaunchDaemons/com.mycompany.mydaemon.plist
This should have the desired effect. Logging out the first time will no longer terminate the daemon process.
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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Rakesh Singhal