Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vxOlX-00C2ED-1y for pgsql-docs@arkaria.postgresql.org; Tue, 03 Mar 2026 12:22:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vxOlW-006ynm-0D for pgsql-docs@arkaria.postgresql.org; Tue, 03 Mar 2026 12:22:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vxOlV-006yne-1E for pgsql-docs@lists.postgresql.org; Tue, 03 Mar 2026 12:22:18 +0000 Received: from fhigh-b6-smtp.messagingengine.com ([202.12.124.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vxOlU-00000000B2Z-03zv for pgsql-docs@postgresql.org; Tue, 03 Mar 2026 12:22:17 +0000 Received: from phl-compute-02.internal (phl-compute-02.internal [10.202.2.42]) by mailfhigh.stl.internal (Postfix) with ESMTP id 8CDD87A0123; Tue, 3 Mar 2026 07:22:15 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-02.internal (MEProxy); Tue, 03 Mar 2026 07:22:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1772540535; x=1772626935; bh=QAQ++4r6oXydYndUEdVN/5fdS6IT/Dw5WbEGoMeox3M=; b= BY9jmAPkrTEL2dcllCn55MCmjk9JeuKhzxiS2ZsMNwHzf5GJ5g++6vbe9NHgviul qhs3TVIDmQnxPDNMI2nGqLPu5VhResd15e4VX0zoJKIM9mQ6lUaAuLcl/cHKwA+N ceedAH02b9CZ8As5Y/s/NGE1rJG4kbtOq6ci9x9S896zzu+Pgs8F/rff+48rshZ4 C8MDIxV4rJQprsOUV7q6mMbQNQzm7hbLaGnGmWIYt4QOMdkb0euxMX94/a8UcoUY Fmhnzmx/VJ58d3+szYzbWda95M9pUZsQq9LUy3DgVJ6csfEK/kxzBOe1vOICkOTz I7vAze73X8xH6o40fThsOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1772540535; x=1772626935; bh=Q AQ++4r6oXydYndUEdVN/5fdS6IT/Dw5WbEGoMeox3M=; b=56BRSDnvBEs4EPNta k1f2wFptvf2MM2iwR8jFwL98gMuZtAshoOvE3Qm1AG/KsGK3TflKU8nFJBr61cu1 sM6bFSaiWsBVAooXKNnOg3uZB9XWWtoerYuljXUHYfqaCqEuchssrIrkRcAvuMiB DmFZBvfUWEcxWyLzeMJVZvZG3xl6uL6bB639697CJVh1mLOPZ2U54cKB9gkYu9OF FNb4y8dFYwHgNn5RC3e/c32ikz/onrCyqZDfxRYTUMi7f8ZdrLcKGuJpMs+KxQIH Gwc3zJBrOvcQBfir9lxqKGeALCHaRBlSzMDm/DyI3qfhlLXc00PuPvsI7+r9PDR6 4Nk8Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddviedtheeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepkfffgggfuffvfhfhjggtgfesthejredttddvjeenucfhrhhomheprfgvthgvrhcu gfhishgvnhhtrhgruhhtuceophgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgqeenuc ggtffrrghtthgvrhhnpeehiedvhfeuhfeugefgfeehgeejtdevuefhtefhueefvddugfdt ueehgfefudfhffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdrohhrghdpnhgspghrtghpthhtohep vddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnughrvgifjhgrtghkshhonh elgeejsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqughotghssehpohhs thhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 3 Mar 2026 07:22:14 -0500 (EST) Message-ID: <61063be9-abbc-4253-ac8e-2762c9997a24@eisentraut.org> Date: Tue, 3 Mar 2026 13:22:13 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Add Restart=on-failure To Example Systemd File To: Andrew Jackson , pgsql-docs@postgresql.org References: Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 27.11.25 19:55, Andrew Jackson wrote: > Currently the systemd file in the documentation does not specify a > restart policy. By default systemd will not attempt to restart a > service that has failed (killed by OOM-killer for example) [0]. The > systemd docs recommends "Setting this to on-failure is the recommended > choice for long-running services, in order to increase reliability by > attempting automatic recovery from errors." I think that Postgres is > probably a good example of a "long-running service". Pgbouncer for > example also uses "Restart=on-failure" [1]. Committed. I think your argument from the commit message that most users copy their systemd unit files from the docs is not quite correct. Most users use what is in packages. So perhaps you want to check the usual packagings and see if they are also using that setting.