osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/43374?usp=email )
Change subject: obs-mirror: restart on failure ......................................................................
obs-mirror: restart on failure
Make the obs-mirror service more robust by automatically restarting it on failure, after 10 minutes. This fixes that the mirroring can fail for a day with:
rsync warning: some files vanished before they could be transferred (code 24) at main.c(1861) [generator=3.4.1]
Change-Id: Ia85c2f34c58567a46ed3849777af1d08df06640f --- M contrib/obs-mirror/systemd/obs-mirror.service 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/74/43374/1
diff --git a/contrib/obs-mirror/systemd/obs-mirror.service b/contrib/obs-mirror/systemd/obs-mirror.service index 6a2f8a0..7348ae6 100644 --- a/contrib/obs-mirror/systemd/obs-mirror.service +++ b/contrib/obs-mirror/systemd/obs-mirror.service @@ -5,6 +5,8 @@ Type=oneshot User=pkgmirror ExecStart=/home/pkgmirror/osmo-ci/contrib/obs-mirror/obs-mirror.sh +Restart=on-failure +RestartSec=600
[Install] WantedBy=multi-user.target