]> git.g-eek.se Git - interimap.git/commitdiff
Unconditionally restart the systemd service.
authorGuilhem Moulin <guilhem@fripost.org>
Thu, 20 Aug 2015 17:11:36 +0000 (19:11 +0200)
committerGuilhem Moulin <guilhem@fripost.org>
Thu, 20 Aug 2015 17:19:11 +0000 (19:19 +0200)
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.

imapsync.service

index 725f23b3ad0161ffc1d6e92124ba162f8716d28e..02b4d13bdc71f8bc3c605b2d5e6849ca7ca4bcf0 100644 (file)
@@ -6,7 +6,7 @@ After=network-online.target
 [Service]
 ExecStart=/usr/bin/imapsync
 RestartSec=60s
-Restart=on-success
+Restart=always
 
 [Install]
 WantedBy=default.target