Skip to content

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