aboutsummaryrefslogtreecommitdiffstats
path: root/roles/setup_mkdocs/templates/mkdocs.service
diff options
context:
space:
mode:
Diffstat (limited to 'roles/setup_mkdocs/templates/mkdocs.service')
-rw-r--r--roles/setup_mkdocs/templates/mkdocs.service3
1 files changed, 3 insertions, 0 deletions
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
remember that computers suck.