Home Forums Software InstaDMG LaunchDaemon harikiri in the image

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #373121
    mavin
    Participant

    Hey all

    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?

    #373129
    Patrick Fergus
    Participant

    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.

    – Patrick

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed