On Tuesday, December 3, 2013 at 9:41:20 AM UTC-6, Mark Waite wrote:
>
> /etc/default/jenkins includes a RUN_STANDALONE value which defaults to 
> "true".  If you set it to "false", then Jenkins will not start as a service.
>
 
While it's true that it won't start, I believe that re-configuration then 
means it will not easily start, because it no longer is configured to run 
on its own without being in some other container like JBoss or Tomcat.

And admittedly, some of these answers may be different from what I found 
simply due to changes in versions.

I'm on LMDE 17, and Jenkins ver. 1.565.3.

What I find is that sometimes I need to have this machine booted in a 
server-ish way (including Jenkins running), but most times I need it 
running in a workstation-ish way (i.e. Jenkins not running).
cat /etc/init/jenkins.conf
description "Jenkins Continuous Integration Server"
author "James Page <james.p...@ubuntu.com>"

start on runlevel [345]
stop on runlevel [!345]

...(snip)

That's my modification. Those two runlevel lists USED to be 2345. I asked 
my system "runlevel" and it said it was on runlevel 2.

So I modified runlevel 2 to not have server-ish things starting. Mostly, 
that was removing symlinks in /etc/rc2.d, but in the case of Jenkins, it 
was modifying the file you see above.

AND, I modified runlevel 4 to have some other server-ish things I wanted, 
by adding a couple links to /etc/rc4.d (exactly what these things were is 
not pertinent to this discussion).

Now, if I'm using this workstation, and find I need to fire up Jenkins, I 
can just "sudo telinit 4" and Jenkins starts up.

And, if I'm suffering from RAM starvation and swapping, and I want to shut 
off the server-ish stuff and go back to a lighter footprint, I just "sudo 
telinit 2" and Jenkins stops (as do some other things).

So far, it's been pretty painless. I hope that helps y'all.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/e6cd28c2-5820-47fc-bdcd-132108b9309b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to