#!/bin/sh
[ -r ./conf ] && . ./conf
mkdir -p /etc/popcorn
chown -R _popcorn:_popcorn /etc/popcorn
chpst -u _popcorn:_popcorn popcorn --server $SERVER --port $PORT
exec chpst -u _popcorn:_popcorn snooze popcorn --server $SERVER --port $PORT