summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2014-09-28 11:27:06 +0200
committerHelmut Grohne <helmut@subdivi.de>2014-09-28 11:27:06 +0200
commit23d28b7cbbea7121d063d5a39bae90fe02eb9f71 (patch)
tree67582b9e9fc26e77ef198025996ffa4d06071cfe /etc
parent7a6eee49d49db578d68629c75db43b78fc0381c1 (diff)
downloadjenkins.debian.net-23d28b7cbbea7121d063d5a39bae90fe02eb9f71.tar.xz
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.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/init.d/jenkins-workspace22
1 files changed, 22 insertions, 0 deletions
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