aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_syncthing/templates/syncthing.service
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-08-11 11:28:18 +0200
committerbinary <me@rgoncalves.se>2020-08-11 11:28:18 +0200
commite14b4f0a4b4a89b2a5cd4a2989496b8c4e7740e8 (patch)
tree1b8b3225f85fde3cdeacda8423830ec6f72a0ee9 /roles/setup_syncthing/templates/syncthing.service
parent87a565c0481a58e0d5d8a2a3e33459f1af132ca6 (diff)
parent9e4cff178875d30b04236b52942e83459a641560 (diff)
downloadinfrastructure-e14b4f0a4b4a89b2a5cd4a2989496b8c4e7740e8.tar.gz
refactored with new files
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.