From 23d28b7cbbea7121d063d5a39bae90fe02eb9f71 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Sun, 28 Sep 2014 11:27:06 +0200 Subject: move chroot and pbuilder builds to tmpfs For this change update_jdn.sh will only work well, if jenkins is not running. It avoids breaking running builds at the cost of potentially not applying configuration. The changes are: * /srv/workspace becomes a tmpfs mounted location * /etc/init.d/jenkins-workspace creates subdirectories on that tmpfs * Old locations for chroots and pbuilder are moved using symlinks. --- etc/init.d/jenkins-workspace | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 etc/init.d/jenkins-workspace (limited to 'etc/init.d/jenkins-workspace') diff --git a/etc/init.d/jenkins-workspace b/etc/init.d/jenkins-workspace new file mode 100755 index 00000000..128d828c --- /dev/null +++ b/etc/init.d/jenkins-workspace @@ -0,0 +1,22 @@ +#!/bin/sh +### BEGIN INIT INFO +# Provides: jenkins-workspace +# Required-Start: $remote_fs +# Required-Stop: $remote_fs +# Default-Start: 2 3 4 5 +# Default-Stop: +# X-Start-Before: jenkins +# Short-Description: Create jenkins workspace directory structure +### END INIT INFO + +WORKSPACE=/srv/workspace + +case "$1" in + start) + echo "Creating jenkins workspace" + mkdir "$WORKSPACE/chroots" + chown jenkins:jenkins "$WORKSPACE/chroots" + mkdir "$WORKSPACE/pbuilder" + echo done + ;; +esac -- cgit v1.2.3-70-g09d2