{"id":6193,"date":"2016-02-12T14:18:19","date_gmt":"2016-02-12T13:18:19","guid":{"rendered":"http:\/\/www.b.shuttle.de\/hayek\/hayek\/jochen\/wp\/blog-en\/?p=6193"},"modified":"2016-02-12T14:18:19","modified_gmt":"2016-02-12T13:18:19","slug":"rcjenkins","status":"publish","type":"post","link":"https:\/\/wp.jochen.hayek.name\/blog-en\/2016\/02\/12\/rcjenkins\/","title":{"rendered":"rcjenkins and rcjenkins.bat"},"content":{"rendered":"<ul>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Run_commands\">https:\/\/en.wikipedia.org\/wiki\/Run_commands<\/a> \u2013 what does &#8220;rc&#8221; stand for?<\/li>\n<li><a href=\"https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Starting+and+Accessing+Jenkins\">https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Starting+and+Accessing+Jenkins<\/a> \u2013 shows various details, but no feasible rc script for &#8220;low-level use&#8221;<\/li>\n<li><a href=\"https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Starting+and+Accessing+Jenkins#StartingandAccessingJenkins-Averysimpleinitscript\">https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Starting+and+Accessing+Jenkins#StartingandAccessingJenkins-Averysimpleinitscript<\/a> \u2013 &#8220;<em>a very simple init script<\/em>&#8221; \u2013 CAVEAT: you can not run this as a simple user<\/li>\n<\/ul>\n<p>I got fed up a little with the rather simplistic <em>startjenkins.bat<\/em> scripts I came across during the last couple of months. All these <em>startjenkins.bat<\/em> scripts occupy a DOS box with output that nobody ever looks at &#8212; and what are these windows good for? For stopping Jenkins through a brute-force Ctrl-C.<\/p>\n<p>I always expect log output to go to a file, in case it is important enough.<br \/>\nIf you want to really see Jenkins logs, get them here:<\/p>\n<ul>\n<li>http:\/\/HOST:8080\/jenkins\/log\/<\/li>\n<\/ul>\n<p>The Jenkins WAR file comes with the winstone servlet container, that&#8217;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 &#8230; you could also run the Jenkins WAR within an ordinary, full-flegded application server like Tomcat, Glassfish, or whatever.)<\/p>\n<p>So &#8230;<br \/>\nI worked on an <em>rcjenkins<\/em> Shell script and an <em>rcjenkins.bat<\/em>. You can run them without adminstrative priviliges. They take Jenkins down by sending the servlet container a <em>shutdown<\/em> command.<\/p>\n<p>I do consider putting these script in\u00a0my github space.\t\t\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/en.wikipedia.org\/wiki\/Run_commands \u2013 what does &#8220;rc&#8221; stand for? https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Starting+and+Accessing+Jenkins \u2013 shows various details, but no feasible rc script for &#8220;low-level use&#8221; https:\/\/wiki.jenkins-ci.org\/display\/JENKINS\/Starting+and+Accessing+Jenkins#StartingandAccessingJenkins-Averysimpleinitscript \u2013 &#8220;a very simple init script&#8221; \u2013 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false,"_share_on_mastodon":"0"},"categories":[666],"tags":[],"class_list":["post-6193","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paO0kP-1BT","jetpack_likes_enabled":true,"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/comments?post=6193"}],"version-history":[{"count":0,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/posts\/6193\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/media?parent=6193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/categories?post=6193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.jochen.hayek.name\/blog-en\/wp-json\/wp\/v2\/tags?post=6193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}