Hi Mark Thanks for your reply. I’m working on Centos 5, so I set the last line of /etc/sysconfig/jenkins to:
JENKINS_ARGS="--prefix=/jenkins --sessionTimeout=540" I then restarted Jenkins using root menu > Restart Safely. After ~30mins inactivity I had to log in to Jenkins again. Do you have any ideas why this is not working for me please? Best regards David From: [email protected] [mailto:[email protected]] On Behalf Of Mark Waite Sent: 14 November 2017 01:47 To: [email protected] Subject: Re: Specifying Jenkins startup parameters It depends on the context where you're running that server. Refer to https://jenkins.io/download/ for the current list of platform specific installers and the instructions to use them. If you're running on a Debian or Ubuntu server, you should be able to modify the command line arguments in /etc/defaults/jenkins. See https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Ubuntu for more details. If you're running on a CentOS, Red Hat or OpenSUSE, you should be able to modify the command line arguments in /etc/sysconfig/jenkins. See https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions If you're running on Windows, there is a configuration file written to the installation directory which can be changed. See https://wiki.jenkins.io/display/JENKINS/Thanks+for+using+Windows+Installer Mark Waite On Fri, Nov 10, 2017 at 5:12 AM David Aldrich <[email protected]<mailto:[email protected]>> wrote: Hi We typically restart Jenkins using 'Restart Safely' from the root menu. We now want to specify the session timeout using a startup parameter: java -jar jenkins.war --sessionTimeout=10080 How do people typically specify startup parameters? Should I use a script and never restart from the root menu? 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/557da4dd82ef430080659b8415e81275%40EUX13SRV1.EU.NEC.COM<https://groups.google.com/d/msgid/jenkinsci-users/557da4dd82ef430080659b8415e81275%40EUX13SRV1.EU.NEC.COM?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFHtUzVERC_C_WB9Pt4rJvwMTOvMeEh4kbwdMkuZNYP7Q%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtFHtUzVERC_C_WB9Pt4rJvwMTOvMeEh4kbwdMkuZNYP7Q%40mail.gmail.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. Click here<https://www.mailcontrol.com/sr/sKD77Q7fxRrGX2PQPOmvUlRg0f8c3ZDCNSC5mHLfYUOb8xTINk9kastQWtwu7LGMp6lUBYTdRFD3vm7b4Ic+!w==> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/34b9200f307646919eb57c52c6ca735e%40EUX13SRV1.EU.NEC.COM. For more options, visit https://groups.google.com/d/optout.
