diff options
Diffstat (limited to 'multimedia/serviio/rc.serviio')
-rw-r--r-- | multimedia/serviio/rc.serviio | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/multimedia/serviio/rc.serviio b/multimedia/serviio/rc.serviio index f81a3bfd74..eaa3776e69 100644 --- a/multimedia/serviio/rc.serviio +++ b/multimedia/serviio/rc.serviio @@ -20,7 +20,9 @@ start() { echo "$PIDFILE exists and delete it." else echo 'Starting Serviio DNLA server...' - su --login -c "$SERVIIO_CMD" $SERVIIO_USER + mkdir -p $(dirname ${PIDFILE}) + chown ${SERVIIO_USER} $(dirname ${PIDFILE}) + setpriv --reset-env --reuid ${SERVIIO_USER} ${SERVIIO_CMD} fi } |