Run daemon from installer as root
Run daemon from installer as root
- Subject: Run daemon from installer as root
- From: Rakesh Singhal <email@hidden>
- Date: Sun, 5 Apr 2009 20:03:42 +0530
Hi all,
I have created an installer for my daemon application. I want my daemon to run as root after installation. Before installation I used to run daemon using "sudo launchctl load /Library/LaunchDaemons/com.mycompany.mydaemon.plist". In installer I tried using run command or run script but it works only in 10.4.11 ppc but not with 10.5.4 intel. I want to set some file permissions/ownerships also but it doesnt work. Installer can be run only from admin users. Is there anyway to run daemon as root using command or script?
Thanks and regards
rksinghal
_______________________________________________
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