aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2015-07-28 00:12:44 +0200
committerGuilhem Moulin <guilhem@fripost.org>2015-07-28 00:12:44 +0200
commitfed8c5f21771b27c4b268e1820ed05a51012fc76 (patch)
treeaccbeec9489d6935596cf396d4f620e014cce7de
parent42435907201ccfa1b1f465d0ef447454f1d8c08e (diff)
Update systemd service file.
-rw-r--r--imapsync.service5
1 files changed, 4 insertions, 1 deletions
diff --git a/imapsync.service b/imapsync.service
index af63425..725f23b 100644
--- a/imapsync.service
+++ b/imapsync.service
@@ -1,9 +1,12 @@
[Unit]
Description=IMAP-to-IMAP Syncronization service
-After=network.target
+Wants=network-online.target
+After=network-online.target
[Service]
ExecStart=/usr/bin/imapsync
+RestartSec=60s
+Restart=on-success
[Install]
WantedBy=default.target