void-packages/srcpkgs/PopCorn/files/popcorn/run

10 lines
232 B
Bash

#!/bin/sh
[ -r ./conf ] && . ./conf
: ${SERVER:=popcorn.voidlinux.org}
: ${PORT:=8001}
chpst -u _popcorn:_popcorn popcorn --server $SERVER --port $PORT
exec chpst -u _popcorn:_popcorn snooze popcorn --server $SERVER --port $PORT