network/serviio: Use setpriv instead of su -c for init

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Robby Workman 2021-07-15 23:19:12 -05:00 committed by Willy Sudiarto Raharjo
parent 29c6f2be33
commit 7e74048754
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -22,7 +22,7 @@ start() {
echo 'Starting Serviio DNLA server...'
mkdir -p $(dirname ${PIDFILE})
chown ${SERVIIO_USER} $(dirname ${PIDFILE})
su --login -c "$SERVIIO_CMD" $SERVIIO_USER
setpriv --reset-env --reuid ${SERVIIO_USER} ${SERVIIO_CMD}
fi
}