How can I kill the Jenkins process?
Launch daemons
On macOS, Jenkins runs as a launch daemon, or simply daemon, which is just a fancy name for a specific way to have a program run in the background. According to Apple’s developer reference, a daemon on macOS is:
[...] a program that runs in the background as part of the overall system (that is, it is not tied to a particular user).
Launch daemons are associated with a macOS-internal process called launchd
, which runs all the time. One of launchd
’s various responsibilities is to (re-)launch a daemon whenever it deems it necessary. This also explains the behavior you described that Jenkins seems to respawn on its own after it is forcibly sent the KILL
signal.
Stopping and uninstalling Jenkins
There is more than one way to stop a running Jenkins instance. As per the original documentation of the Jenkins installer for macOS, the following steps are the recommended way to terminate a Jenkins instance on macOS:
Open
Terminal.app
(you did that already; if not, typeterminal
into a Spotlight search field and hit Enter)-
If you want to stop Jenkins only once, run the following command:
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
-
If you would rather uninstall Jenkins altogether, also run the following command (including the single quotes):
'/Library/Application Support/Jenkins/Uninstall.command'