I'm trying to load my daemon-app with this command launchctl load /Library/LaunchDaemons/myPlistFileName
It works fine, but only while my user is logged in on system.
How can i load my deamon-app, which will stay loaded without any user logged into the system (like the windows-services)??
The command sudo launchctl load /Library/LaunchDaemons/myPlistFileName
give me an error -> nothing found to load
Which is the right way to do this?
EDIT: My Plist-File
<key>Label</key>
<string>com.myCompany.myApplication</string>
<key>ProgramArguments</key>
<array>
<string>open</string>
<string>-g</string>
<string>/Applications/myAppDir/myApplication.app</string>
</array>
<key>UserName</key>
<string>root</string>
<key>GroupName</key>
<string>wheel</string>
<key>KeepAlive</key>
<true/>
<key>OnDemand</key>
<false/>
Currently it is so: at system-start my daemon starts with root-permissions. After i've logged in with my user-account, the daemon-process restarts and my user is the new owner of the process