From 2c676b1f16350c7c06870b527c7fc8de2188c3a9 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Wed, 14 Jan 2009 23:08:40 +0000 Subject: [PATCH] Debian package now has the RUN_STANDALONE switch to control if hudson should be run as a daemon. (report) git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@14497 71c3de6d-444a-0410-be80-ed276b4c234a --- debian/hudson.default | 5 +++++ debian/hudson.init | 3 +++ 2 files changed, 8 insertions(+) diff --git a/debian/hudson.default b/debian/hudson.default index b6d108d19d..1758ee2319 100644 --- a/debian/hudson.default +++ b/debian/hudson.default @@ -20,6 +20,11 @@ HUDSON_WAR=/usr/share/hudson/hudson.war # hudson home location HUDSON_HOME=/var/lib/hudson +# set this to false if you don't want Hudson to run by itself +# in this set up, you are expected to provide a servlet containr +# to host hudson. +RUN_STANDALONE=true + # log location. this may be a syslog facility.priority HUDSON_LOG=/var/log/hudson/$NAME.log #HUDSON_LOG=daemon.info diff --git a/debian/hudson.init b/debian/hudson.init index ca0631bd3d..acdf0be184 100644 --- a/debian/hudson.init +++ b/debian/hudson.init @@ -18,6 +18,9 @@ DAEMON_ARGS="--name=$NAME --inherit --env=HUDSON_HOME=$HUDSON_HOME --output=$HUD # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 +# Exit if not supposed to run standalone +[ "$RUN_STANDALONE" = "false" ] && exit 0 + # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh -- GitLab