How to stop Jenkins installed on Mac Snow Leopard?

后端 未结 8 1717
感动是毒
感动是毒 2020-12-12 09:54

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

相关标签:
8条回答
  • 2020-12-12 09:54

    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 (

    0 讨论(0)
  • 2020-12-12 10:00
    • Start Jenkins service: brew services start jenkins-lts
    • Stop Jenkins service: brew services stop jenkins-lts
    • Restart Jenkins service: brew services restart jenkins-lts
    0 讨论(0)
  • 2020-12-12 10:01
    1. sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

    2. UI -> jenkins --> manage jenkins --> prepare for shutdown

    3. brew services stop jenkins --all

    0 讨论(0)
  • 2020-12-12 10:05

    use launchctl unload /Users/<user>/Library/LaunchAgents/homebrew.mxcl.jenkins.plist

    0 讨论(0)
  • 2020-12-12 10:07

    Just unload the plist using launchctl

    sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist
    
    0 讨论(0)
  • 2020-12-12 10:10

    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.

    Jenkins unload stops it and it won't load again on boot up

    sudo launchctl unload /Library/LaunchDaemons/org.jenkins-ci.plist

    stop it without unloading it ( will load again when you reboot)

    sudo launchctl stop /Library/LaunchDaemons/org.jenkins-ci.plist

    load it - starts it and will restart whenever your system boots

    sudo launchctl load /Library/LaunchDaemons/org.jenkins-ci.plist

    restarts it, doesn't effect loaded or unloaded status

    sudo launchctl start /Library/LaunchDaemons/org.jenkins-ci.plist

    0 讨论(0)
提交回复
热议问题