- https://en.wikipedia.org/wiki/Run_commands – what does “rc” stand for?
- https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins – shows various details, but no feasible rc script for “low-level use”
- https://wiki.jenkins-ci.org/display/JENKINS/Starting+and+Accessing+Jenkins#StartingandAccessingJenkins-Averysimpleinitscript – “a very simple init script” – CAVEAT: you can not run this as a simple user
I got fed up a little with the rather simplistic startjenkins.bat scripts I came across during the last couple of months. All these startjenkins.bat scripts occupy a DOS box with output that nobody ever looks at — and what are these windows good for? For stopping Jenkins through a brute-force Ctrl-C.
I always expect log output to go to a file, in case it is important enough.
If you want to really see Jenkins logs, get them here:
- http://HOST:8080/jenkins/log/
The Jenkins WAR file comes with the winstone servlet container, that’s a little like an application server. And you are able to control the application loaded (Jenkins in this case) through communicating with the servlet container. (Actually … you could also run the Jenkins WAR within an ordinary, full-flegded application server like Tomcat, Glassfish, or whatever.)
So …
I worked on an rcjenkins Shell script and an rcjenkins.bat. You can run them without adminstrative priviliges. They take Jenkins down by sending the servlet container a shutdown command.
I do consider putting these script in my github space.
Leave a Reply