aboutsummaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/setup_git/templates/gitweb.service3
-rw-r--r--roles/setup_mkdocs/templates/mkdocs.service3
-rw-r--r--roles/setup_syncthing/templates/syncthing.service3
3 files changed, 9 insertions, 0 deletions
diff --git a/roles/setup_git/templates/gitweb.service b/roles/setup_git/templates/gitweb.service
index 12e1eb4..0b65b49 100644
--- a/roles/setup_git/templates/gitweb.service
+++ b/roles/setup_git/templates/gitweb.service
@@ -21,5 +21,8 @@ ExecStart=/usr/bin/git instaweb --port={{ g_port_gitweb_gui }}
ExecStop=/bin/kill -s HUP $MAINPID
RuntimeDirectoryMode=0700
+Restart=on-failure
+RestartSec=60s
+
[Install]
WantedBy=default.target
diff --git a/roles/setup_mkdocs/templates/mkdocs.service b/roles/setup_mkdocs/templates/mkdocs.service
index 0befc0d..eecd126 100644
--- a/roles/setup_mkdocs/templates/mkdocs.service
+++ b/roles/setup_mkdocs/templates/mkdocs.service
@@ -20,5 +20,8 @@ ExecStart=mkdocs serve --dev-addr {{g_ip_mkdocs_gui}}:{{g_port_mkdocs_gui }}
ExecStop=/bin/kill -s HUP $MAINPID
RuntimeDirectoryMode=0700
+Restart=on-failure
+RestartSec=60s
+
[Install]
WantedBy=default.target
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.