network/serviio: Create PIDDIR during initialization

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

View file

@ -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
}