Aipo
Aipo

Reputation: 1985

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.

Upvotes: 5

Views: 6934

Answers (2)

so61pi
so61pi

Reputation: 799

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

Upvotes: 12

Luc
Luc

Reputation: 1433

On Ubuntu in the /etc/rc.local you could delete /etc/init.d/jenkins start

Another idea could be to go through chkconfig, and remove Jenkins:

chkconfig --del jenkins

Upvotes: 4

Related Questions