diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2021-07-15 23:06:43 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2021-07-17 09:50:23 +0700 |
commit | 29c6f2be33a475f60e3ced1759cafaf8d91554ce (patch) | |
tree | ab658cf895622824b9ed1dc04323ab63859a3635 /multimedia | |
parent | 4a41d4b400264a41ec8fb2a46c148fb06d1383e9 (diff) |
network/serviio: Create PIDDIR during initialization
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'multimedia')
-rw-r--r-- | multimedia/serviio/rc.serviio | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/multimedia/serviio/rc.serviio b/multimedia/serviio/rc.serviio index f81a3bfd74c8..4afae80d8566 100644 --- a/multimedia/serviio/rc.serviio +++ b/multimedia/serviio/rc.serviio @@ -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 } |