void-packages/srcpkgs/syncthing/files/discosrv/run

9 lines
186 B
Bash

#!/bin/sh
[ -r conf ] && . ./conf
DISCO_ARGS="${DISCO_ARGS:--cert=/var/lib/discosrv/cert.pem -key=/var/lib/discosrv/key.pem}"
exec 2>&1
exec chpst -u _discosrv stdiscosrv $DISCO_ARGS