<#807 Fix OSX quick-enroll: stop osqueryd before u...
# osctrl
g
#807 Fix OSX quick-enroll: stop osqueryd before unload Pull request opened by kimjune01 Re-enrolling an OSX node with osqueryd already running fails because launchctl unload returns an error when the service is still active. The stopOsquery function on Darwin needs to stop the service before unloading it. This adds a launchctl stop call before the unload, matching the pattern used on other platforms where the service is stopped before removal. Fixes #57 jmpsec/osctrl