summaryrefslogtreecommitdiffstats
path: root/jenkins-server-slave-setup
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-06-08 05:16:39 +0200
committerSven Gothel <[email protected]>2013-06-08 05:16:39 +0200
commited425b73b4069954dc9dafe234c75507e3166902 (patch)
tree3456e30ab8e8f1731bba252bfcdc42e6f7fc326f /jenkins-server-slave-setup
parentea8e82f8cb83a8732af7133d8ca0986af6717101 (diff)
Add logrotate file; Fix jenkins-initd-debian
Diffstat (limited to 'jenkins-server-slave-setup')
-rwxr-xr-xjenkins-server-slave-setup/scripts/jenkins-initd-debian3
-rw-r--r--jenkins-server-slave-setup/scripts/jenkins.logrotate9
2 files changed, 10 insertions, 2 deletions
diff --git a/jenkins-server-slave-setup/scripts/jenkins-initd-debian b/jenkins-server-slave-setup/scripts/jenkins-initd-debian
index 3b5fa5c..5f66d99 100755
--- a/jenkins-server-slave-setup/scripts/jenkins-initd-debian
+++ b/jenkins-server-slave-setup/scripts/jenkins-initd-debian
@@ -30,7 +30,6 @@ JENKINS_USER=jogamp_ci
JENKINS_HOME=/srv/jenkins
startup=$JENKINS_HOME/scripts/start.jenkins.sh
shutdown=$JENKINS_HOME/scripts/stop.jenkins.sh
-export JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::")
start(){
echo -n $"Starting Jenkins service: "
@@ -40,7 +39,7 @@ start(){
}
stop(){
- action $"Stopping Jenkins service: "
+ echo -n $"Stopping Jenkins service: "
su - $JENKINS_USER -c $shutdown
RETVAL=$?
echo
diff --git a/jenkins-server-slave-setup/scripts/jenkins.logrotate b/jenkins-server-slave-setup/scripts/jenkins.logrotate
new file mode 100644
index 0000000..b648fdf
--- /dev/null
+++ b/jenkins-server-slave-setup/scripts/jenkins.logrotate
@@ -0,0 +1,9 @@
+/var/log/jenkins/jenkins.log {
+ weekly
+ copytruncate
+ missingok
+ rotate 52
+ compress
+ delaycompress
+ notifempty
+}