diff options
author | binary <me@rgoncalves.se> | 2020-08-05 15:52:14 +0200 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-08-05 15:52:14 +0200 |
commit | 9e4cff178875d30b04236b52942e83459a641560 (patch) | |
tree | 2537236589b3c369108c17cc5558076049dca4d4 /roles/setup_syncthing/templates | |
parent | 5e30569f228001353724a738c09adc46b30eb446 (diff) | |
download | infrastructure-9e4cff178875d30b04236b52942e83459a641560.tar.gz |
Added restart on failure for all systemd services
Diffstat (limited to 'roles/setup_syncthing/templates')
-rw-r--r-- | roles/setup_syncthing/templates/syncthing.service | 3 |
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 |