summaryrefslogtreecommitdiff
path: root/docs/desktop/syncthing.md
diff options
context:
space:
mode:
authorjoshua <joshua@joshuayun.com>2024-01-03 02:10:09 -0500
committerjoshua <joshua@joshuayun.com>2024-01-03 02:10:09 -0500
commit4f5c398c39a69c47f059e2e39ee4e04218c3850e (patch)
treead0830c65b33866c7bb4cf6d3f09af824bd2b731 /docs/desktop/syncthing.md
parent0bff0099d6a5c73c8e918f5378bfa6cad3912983 (diff)
downloadwiki-4f5c398c39a69c47f059e2e39ee4e04218c3850e.tar.gz
Added syncthing desktop setup article to wiki
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)