title: Mac OS X: In Objective-C or C, how to unload (stop) a LaunchDaemon managed by launched
body: <p>I would like to know how to write Objective-C or C code to unload (stop) a LaunchDaemon.
  The LaunchDaemon that I want to unload is running as root user.</p>
  
  <p>My question is basically the same as this one: <a href="https://stackoverflow.com/questions/15478614/how-to-load-launchdaemon-plist-from-my-mac-application">How to Load LaunchDaemon plist from my Mac Application</a>.  The only difference is that he/she is trying to load, but I want to unload.</p>