mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
network/serviio: Create PIDDIR during initialization
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
4a41d4b400
commit
29c6f2be33
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue