commit 46cdfaade84770952bdb53ea74c54523f64a6c95
parent 588f7708f808c043b8f535b2b020de3861fa5cd9
Author: Florian Dold <florian@dold.me>
Date: Fri, 31 Oct 2025 19:05:49 +0100
comment exit code
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/debian/challenger-httpd.service b/debian/challenger-httpd.service
@@ -9,6 +9,8 @@ Type=simple
Restart=always
RestartMode=direct
RestartSec=1s
+# Only restart when for status 9=EXIT_NO_RESTART
+# In other cases (can't connect to database, ...) we restart
RestartPreventExitStatus=9
# Disable the service if more than 5 restarts are encountered within 5s.