aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_syncthing/templates/syncthing.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/setup_syncthing/templates/syncthing.service')
-rw-r--r--roles/setup_syncthing/templates/syncthing.service3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/setup_syncthing/templates/syncthing.service b/roles/setup_syncthing/templates/syncthing.service
index fe4c429..e6d5485 100644
--- a/roles/setup_syncthing/templates/syncthing.service
+++ b/roles/setup_syncthing/templates/syncthing.service
@@ -21,5 +21,8 @@ ExecStart={{ syncthing_bin_directory }}/syncthing
ExecStop=/bin/kill -s HUP $MAINPID
RuntimeDirectoryMode=0700
+Restart=on-failure
+RestartSec=60s
+
[Install]
WantedBy=default.target
remember that computers suck.