From: Jo-Philipp Wich Date: Thu, 18 Jul 2019 12:56:47 +0000 (+0200) Subject: rsync: remove pid file if it already exists X-Git-Tag: v1~75 X-Git-Url: http://git.openwrt.org/?p=buildbot.git;a=commitdiff_plain;h=51543628c9a2094bf82ca4651b93a4e7873f5745 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 --- 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 "$@"