diff options
author | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-06-02 08:40:27 +0000 |
---|---|---|
committer | Adam Coldrick <adam.coldrick@codethink.co.uk> | 2015-06-02 13:56:08 +0000 |
commit | 02faf51e91a8c55adfbb6d953bca354ab99bf261 (patch) | |
tree | eff61e6fe9bb3adcf254c4e86eebca7190c65cce /install-files/distbuild/lib/systemd | |
parent | 65ddf13f13ab68c1c5728e40dd81f1e8826ab0cf (diff) | |
download | definitions-02faf51e91a8c55adfbb6d953bca354ab99bf261.tar.gz |
Move all the directories used for install-files into a subdirectorybaserock/adamcoldrick/all-exts-in-definitions-v2
Change-Id: I309c183ce8b9ff9d0f5ac4807244547f2cc4ddf5
Diffstat (limited to 'install-files/distbuild/lib/systemd')
-rwxr-xr-x | install-files/distbuild/lib/systemd/system-generators/ccache-nfs-mount-generator | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/install-files/distbuild/lib/systemd/system-generators/ccache-nfs-mount-generator b/install-files/distbuild/lib/systemd/system-generators/ccache-nfs-mount-generator new file mode 100755 index 00000000..127bc84f --- /dev/null +++ b/install-files/distbuild/lib/systemd/system-generators/ccache-nfs-mount-generator @@ -0,0 +1,16 @@ +#!/bin/sh +read trove_host </etc/trove-host +while read line; do echo "$line"; done >"$1/srv-distbuild-ccache.mount" <<EOF +[Unit] +Requires=rpcbind.service +After=rpcbind.service +SourcePath=/etc/trove-host + +[Mount] +Type=nfs +What=$trove_host:/home/cache/ccache +Where=/srv/distbuild/ccache + +[Install] +WantedBy=morph-worker.service +EOF |