summaryrefslogtreecommitdiff
path: root/docs/desktop/syncthing.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/desktop/syncthing.md')
-rw-r--r--docs/desktop/syncthing.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/desktop/syncthing.md b/docs/desktop/syncthing.md
new file mode 100644
index 0000000..aabcd79
--- /dev/null
+++ b/docs/desktop/syncthing.md
@@ -0,0 +1,16 @@
+# Syncthing using Runit and Artix Linux
+
+The default Artix Linux syncthing script is broken, here is a corrected version that works:
+
+ #!/bin/sh
+ export USER="joshua"
+ export HOME="/home/joshua"
+
+ groups="$(id -Gn "$USER" | tr ' ' ':')"
+
+ exec 2>&1
+ exec chpst -u "$USER:groups" syncthing -logflags 0
+
+References:
+
+[Void Linux Per User Services](https://docs.voidlinux.org/config/services/user-services.html)