From 9a0885ecfccbe69d6704d0c0d69347ccc23cdddb Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Thu, 27 Nov 2025 10:45:52 -0600 Subject: [PATCH] doc: Add restart on failure to example systemd file The documentation previously had a systemd unit file that would not attempt to recover from process failures such as OOM's, segfaults, etc. This commit adds `Restart=on-failure` which tells systemd to attempt to restart the process after failure. This is the recommended configuration per the systemd documentation: "Setting this to on-failure is the recommended choice for long-running services". Most postgres users will simply copy/paste what the postgres docs recommend and will probably do their own research and change the service file to restart on failure, so might as well set this as the default in the postgres docs. --- doc/src/sgml/runtime.sgml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 0c60bafac63..dbb3b2ef53f 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -491,6 +491,7 @@ ExecReload=/bin/kill -HUP $MAINPID KillMode=mixed KillSignal=SIGINT TimeoutSec=infinity +Restart=on-failure [Install] WantedBy=multi-user.target -- 2.49.0