network/serviio: Use setpriv instead of su -c for init
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
29c6f2be33
commit
7e74048754
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue