How can I stop jenkins.pid in fedora15?

0

I have jenkins running, but I need to stop it. in /var/run I have jenkins.pid which is what the standard jenkins script uses to stop jenkins. The jenkins script uses start-stop-daemon which doesn't seem to exist in fedora15. My system also does not find daemon which I read would be a fedora replacement for start-stop-daemon.

I am not good with Linux terminology. I did find the daemon function defined in /etc/init.d/functions but I don't know how to run it.

Can I run it or can I use something else?

Rythmic

Posted 2011-11-05T02:01:27.290

Reputation: 103

Answers

0

Run service jenkins stop as root. You can use the su - command to access a root shell. See The Fedora Basics FAQ for more information.

PleaseStand

Posted 2011-11-05T02:01:27.290

Reputation: 4 051

So anything pid in linux is a service? – Rythmic – 2011-11-06T19:32:54.997

@Rythmic: The jenkins.pid file contains the process ID number that Jenkins runs as. You could try killing Jenkins using a command like xargs kill < /var/run/jenkins.pid, but it is better to use the distribution's or service's own tool (as described above) if you can. – PleaseStand – 2011-11-07T12:20:16.337

1

You can use

chkconfig jenkins off

to make it permanent - so it won't run next time you boot.

Paul

Posted 2011-11-05T02:01:27.290

Reputation: 52 173