From: Guilhem Moulin Date: Thu, 20 Aug 2015 17:11:36 +0000 (+0200) Subject: Unconditionally restart the systemd service. X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=3c6c1775ff1baaa7b3bf50aa1d9646d25e957706;p=interimap.git Unconditionally restart the systemd service. It's unfortunate in that the service keep restarting every n secs in case the remote server is down. Ideally systemd would offer a way to restart services with a non-constant (e.g., exponential) progression in case of failure. --- diff --git a/imapsync.service b/imapsync.service index 725f23b..02b4d13 100644 --- a/imapsync.service +++ b/imapsync.service @@ -6,7 +6,7 @@ After=network-online.target [Service] ExecStart=/usr/bin/imapsync RestartSec=60s -Restart=on-success +Restart=always [Install] WantedBy=default.target