summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
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