From 4f5c398c39a69c47f059e2e39ee4e04218c3850e Mon Sep 17 00:00:00 2001 From: joshua Date: Wed, 3 Jan 2024 02:10:09 -0500 Subject: Added syncthing desktop setup article to wiki --- docs/desktop/syncthing.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/desktop/syncthing.md (limited to 'docs/desktop/syncthing.md') 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) -- cgit v1.2.3