Originally I started Jenkins like this (abbreviated), but the sessionTimeout 
was not effective:
java -DsessionTimeout=480 -jar jenkins.war
I found that changing to this form worked:
java -jar jenkins.war --sessionTimeout=480

Obviously you’ll  need to work out for yourself how you get your init script to 
do that.
Hope that helps
Matthew

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Kevin Fleming 
(BLOOMBERG/ 731 LEXIN)
Sent: 23 December 2013 19:17
To: jenkinsci-users@googlegroups.com
Subject: RE: How to use --sessionTimeout?

No, this is not going to work. You are passing the arguments to a shell script 
which does many things, including starting Jenkins.

If this is the script provided by the Debian/Ubuntu packages for Jenkins, you 
will want to do this instead:

* Open /etc/default/jenkins in a text editor.
* Find the JENKINS_ARGS variable at the bottom of the file.
* Inside the double-quotes, probably at the end, add: -DsessionTimeout=1440
* Save the file, then restart Jenkins using the init script 
(/etc/init.d/jenkins restart).

----- Original Message -----
From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
At: Dec 20 2013 08:59:20
I have also tried:

# /etc/init.d/jenkins start --sessionTimeout 1440

But the session timeout is still much less than 1 day.

Best regards

David

From: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of David Aldrich
Sent: 19 December 2013 16:37
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: RE: How to use --sessionTimeout?

Hi

I tried this:

# /etc/init.d/jenkins start --DsessionTimeout=1440

to set the timeout to 1 day.  But the session timeout is still less than 1 day. 
 Have I got the syntax right?

David

From:jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com> 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Indra Gunawan (ingunawa)
Sent: 17 December 2013 19:21
To: jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>
Subject: Re: How to use --sessionTimeout?

I think it is in minutes.  Before you edit the web.xml in the exploded war's 
winstone

${user.home}/.jenkins/war/WEB-INF/web.xml

add this entry
<session-config>
<session-timeout>20</session-timeout>
</session-config>


I think you simply add "–DsessionTimeout=<value-in-miinutes>" in your jenkins's 
start-up script like the rest.

From: David Aldrich 
<david.aldr...@emea.nec.com<mailto:david.aldr...@emea.nec.com>>
Reply-To: 
"jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>" 
<jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>>
Date: Tuesday, December 17, 2013 8:35 AM
To: "jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>" 
<jenkinsci-users@googlegroups.com<mailto:jenkinsci-users@googlegroups.com>>
Subject: How to use --sessionTimeout?

Hi

Having upgraded to 1.532.1 LTS, how do I use the --sessionTimeout parameter?

Is it something like:

sudo /etc/init.d/jenkins start –sessionTimeout=1800

where the timeout value is in seconds?

Best regards

David
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.


Click 
here<https://www.mailcontrol.com/sr/cLRMyd1yv9bGX2PQPOmvUjXuKmsvWB!ma5f47ZNgd79SkxjSdxHYrY1HhMwL57kCEOZVnM2aHGmg1M3YVHc55g==>
 to report this email as spam.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.
--
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<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.



-- 

This e-mail and any attachments may contain confidential, copyright and or 
privileged material, and are for the use of the intended addressee only. If you 
are not the intended addressee or an authorised recipient of the addressee 
please notify us of receipt by returning the e-mail and do not use, copy, 
retain, distribute or disclose the information in or attached to the e-mail.

Any opinions expressed within this e-mail are those of the individual and not 
necessarily of Diamond Light Source Ltd. 

Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments 
are free from viruses and we cannot accept liability for any damage which you 
may sustain as a result of software viruses which may be transmitted in or with 
the message.

Diamond Light Source Limited (company no. 4375679). Registered in England and 
Wales with its registered office at Diamond House, Harwell Science and 
Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

 







-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to