runit-user-services/barrierc/run
2023-10-24 17:11:15 +02:00

14 lines
288 B
Bash
Executable file

#!/bin/zsh
if [[ ! -e ${0:a:h}/server ]] then
<<-ERROR
Service requires configuration!
Create \`${0:a:h}/server\` containing the target server name
ERROR
exit 1
fi
source ${0:a:h:h}/import-env.zsh
import-env awesome || exit 1
exec 2>&1
exec barrierc --no-daemon $(<${0:a:h}/server)