Manually kill the process associated with a known agent/daemon, if it is running

launchctl

  • A command-line interface to Apple's `launchd` manager for launch daemons (system-wide services) and launch agents (per-user programs).
    `launchd` loads XML-based `*.plist` files placed in the appropriate locations, and runs the corresponding commands according to their defined schedule.
    More information: <https://manned.org/launchctl>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

launchctl stop {{my_script}}

click the source code to copy