aboutsummaryrefslogtreecommitdiffstats
path: root/templates/jail_confs/syncthing.j2
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-03-04 09:15:06 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-03-04 09:15:06 +0200
commitafd15cdfce242016906d5c95736d1a7967ca0b50 (patch)
treee2bc08bc6e35ea010cb943d7ce8b7886c0520e40 /templates/jail_confs/syncthing.j2
parent94f4fecc1ee69fadbae619683f62a41d97f93c1a (diff)
Move jail nullfs mounts to jail scripts
Diffstat (limited to 'templates/jail_confs/syncthing.j2')
-rw-r--r--templates/jail_confs/syncthing.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/jail_confs/syncthing.j2 b/templates/jail_confs/syncthing.j2
new file mode 100644
index 0000000..6c518ff
--- /dev/null
+++ b/templates/jail_confs/syncthing.j2
@@ -0,0 +1,9 @@
+{% include 'jail_confs/_default.j2' %}
+
+exec.prestart += "mount -t nullfs /usr/local/jails/volumes/storage/docs /usr/local/jails/containers/syncthing/mnt/docs || echo 'Failed to mount'";
+exec.prestart += "mount -t nullfs /usr/local/jails/volumes/storage/vault /usr/local/jails/containers/syncthing/mnt/vault || echo 'Failed to mount'";
+exec.prestart += "mount -t nullfs /usr/local/jails/volumes/storage/jan-systems-2025-content /usr/local/jails/containers/syncthing/mnt/jan-systems-2025-content || echo 'Failed to mount'";
+
+exec.poststop += "umount /usr/local/jails/containers/syncthing/mnt/jan-systems-2025-content || echo 'Failed to umount'";
+exec.poststop += "umount /usr/local/jails/containers/syncthing/mnt/vault || echo 'Failed to umount'";
+exec.poststop += "umount /usr/local/jails/containers/syncthing/mnt/docs || echo 'Failed to umount'";