From 51543628c9a2094bf82ca4651b93a4e7873f5745 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 18 Jul 2019 14:56:47 +0200 Subject: [PATCH] rsync: remove pid file if it already exists If the rsync container was forcibly shut down, it may still contain a stale pid file entry. Signed-off-by: Jo-Philipp Wich --- docker/rsync/files/entry.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/rsync/files/entry.sh b/docker/rsync/files/entry.sh index 9512a4a..587602e 100644 --- a/docker/rsync/files/entry.sh +++ b/docker/rsync/files/entry.sh @@ -24,4 +24,6 @@ fi chown "${SHARE_UID:-1000}:${SHARE_GID:-1000}" /data +rm -f /tmp/rsyncd.pid + exec /usr/bin/rsync --daemon --no-detach --config=/rsyncd.conf --log-file=/dev/stdout --dparam=pidfile=/tmp/rsyncd.pid "$@" -- 2.30.2