Asa
Asa

Reputation: 21

How to load a launchDaemon.plist without rebooting ios device?

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

Answers (1)

Nate
Nate

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

Related Questions