Reputation: 21
I wrote a launchDaemon.plist, and put it into /System/Library/LaunchDaemon/
.
How can I load it without rebooting my iOS device?
Upvotes: 2
Views: 954
Reputation: 31045
If you login to your iOS device via ssh
, you can use this from the command line:
launchctl load /System/Library/LaunchDaemons/launchDaemon.plist
And of course, to stop the daemon
launchctl unload /System/Library/LaunchDaemons/launchDaemon.plist
Note: if you are going to release this as a product, not just for your own use, I recommend following normal naming conventions, and name your plist file something like com.mycompany.MyCrazyDaemon.plist
.
Reference: Apple OS X docs on launchctl.
Upvotes: 1