diff --git a/multimedia/serviio/rc.serviio b/multimedia/serviio/rc.serviio index f81a3bfd74..4afae80d85 100644 --- a/multimedia/serviio/rc.serviio +++ b/multimedia/serviio/rc.serviio @@ -20,6 +20,8 @@ start() { echo "$PIDFILE exists and delete it." else echo 'Starting Serviio DNLA server...' + mkdir -p $(dirname ${PIDFILE}) + chown ${SERVIIO_USER} $(dirname ${PIDFILE}) su --login -c "$SERVIIO_CMD" $SERVIIO_USER fi }