1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Add support for systemd service notifications

Insert sd_notify() calls at server start and stop for integration with
systemd.  This allows the use of systemd service units of type "notify",
which greatly simplifies the systemd configuration.

Reviewed-by: Pavel Stěhule <pavel.stehule@gmail.com>
This commit is contained in:
Peter Eisentraut
2015-11-17 06:46:17 -05:00
parent ac7238dc0f
commit 7d17e683fc
8 changed files with 147 additions and 0 deletions

View File

@ -812,6 +812,22 @@ su - postgres
</listitem>
</varlistentry>
<varlistentry>
<term><option>--with-systemd</option></term>
<listitem>
<para>
Build with support
for <application>systemd</application><indexterm><primary>systemd</primary></indexterm>
service notifications. This improves integration if the server binary
is started under <application>systemd</application> but has no impact
otherwise; see <xref linkend="server-start"> for more
information. <application>libsystemd</application> and the
associated header files need to be installed to be able to use this
option.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>--without-readline</option></term>
<listitem>