Search code examples
ubuntujenkinsstartup

How to prevent Jenkins autostart on startup Ubuntu 16.04?


I am experimenting with Docker. When I install containers, they conflicts to my existing Jenkins port. I am not using Jenkins at this case. How to prevent Jenkins to run on start-up.


Solution

  • sudo systemctl disable jenkins.service
    

    This command will prevent systemd from starting jenkins the next time you reboot.

    To enable autostart again, use:

    sudo systemctl enable jenkins.service