From 7e74048754a841c68494115445900878ade60715 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Thu, 15 Jul 2021 23:19:12 -0500 Subject: [PATCH] network/serviio: Use setpriv instead of su -c for init Signed-off-by: Willy Sudiarto Raharjo --- multimedia/serviio/rc.serviio | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multimedia/serviio/rc.serviio b/multimedia/serviio/rc.serviio index 4afae80d85..eaa3776e69 100644 --- a/multimedia/serviio/rc.serviio +++ b/multimedia/serviio/rc.serviio @@ -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 }