I have a script that installs and moves a few things around that I need to run at first-boot, as root, and that then disables/deletes itself on completion. I’ve got my plist setup and a working script, my question is how I should kill the LaunchDaemon.
Should I have the script unload the plist from launchd before I delete the plist or does that matter?
No experience creating and destroying my own launchdaemons, but I’d think the OS would be happier if you unloaded the daemon before deleting the plist–as long as your script deleting the plist doesn’t get killed by unloading the daemon. YMMV.
Comments are closed