I have installed Jenkins executable on OSX, but now I want to stop it running. Whenever I kill it, no matter how, it just restarts immediately.
I\'ve tried using the
Note, that if you wish also to disable running Jenkins on Mac OS start up, according to http://halyph.blogspot.ru/2013/03/jenkins-on-mac-os-x-tips-and-tricks.html you should do:
sudo defaults write /Library/LaunchDaemons/org.jenkins-ci RunAtLoad -bool NO
UPD: didn't work for me (
brew services start jenkins-lts
brew services stop jenkins-lts
brew services restart jenkins-lts
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
UI -> jenkins --> manage jenkins --> prepare for shutdown
brew services stop jenkins --all
use launchctl unload /Users/<user>/Library/LaunchAgents/homebrew.mxcl.jenkins.plist
Just unload the plist using launchctl
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
There are two things going on.
(1) will your system start Jenkins when it comes up. Controlled by load and unload.
(2) Is Jenkins currently running or not. Controlled by start and stop.
sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
sudo launchctl stop /Library/LaunchDaemons/org.jenkins-ci.plist
sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist
sudo launchctl start /Library/LaunchDaemons/org.jenkins-ci.plist