diff options
| author | Tom Lane | 2022-03-20 16:39:40 +0000 |
|---|---|---|
| committer | Tom Lane | 2022-03-20 16:39:40 +0000 |
| commit | 3f513ac7935db86f72511aac24fa6b52ed29bfe7 (patch) | |
| tree | 7c3db2085f2a75ecd86cc45d2ed9a15d71e15099 | |
| parent | 3a671e1f7cb8b29ad77b08f891b8f22621f490a3 (diff) | |
Doc: fix our example systemd script.
The example used "TimeoutSec=0", but systemd's documented way to get
the desired effect is "TimeoutSec=infinity".
Discussion: https://postgr.es/m/[email protected]
| -rw-r--r-- | doc/src/sgml/runtime.sgml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index f77ed242044..ffb0b6f287b 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -488,7 +488,7 @@ ExecStart=/usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data ExecReload=/bin/kill -HUP $MAINPID KillMode=mixed KillSignal=SIGINT -TimeoutSec=0 +TimeoutSec=infinity [Install] WantedBy=multi-user.target @@ -500,11 +500,11 @@ WantedBy=multi-user.target <para> Consider carefully the timeout setting. <application>systemd</application> has a default timeout of 90 - seconds as of this writing and will kill a process that does not notify + seconds as of this writing and will kill a process that does not report readiness within that time. But a <productname>PostgreSQL</productname> server that might have to perform crash recovery at startup could take - much longer to become ready. The suggested value of 0 disables the - timeout logic. + much longer to become ready. The suggested value + of <literal>infinity</literal> disables the timeout logic. </para> </listitem> |
