]> git.proxmox.com Git - dab-pve-appliances.git/commitdiff
pmg: disable postgres backup and replication services
authorStoiko Ivanov <s.ivanov@proxmox.com>
Tue, 1 Aug 2023 09:57:13 +0000 (11:57 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 4 Aug 2023 14:27:15 +0000 (16:27 +0200)
If installed manually on a running system, or via our ISO these
services do not get enabled.

having them enabled leads to error messages in the journal, due to the
pg_hba.conf.in template in pmg-api being out-of-date.
In any case these should not be enabled by default - see:
/usr/share/doc/postgresql-common/README.systemd

I currently suspect that the issue with the template here is that
firstboot services run with it - and systemd enables the
template-units (instead of the instaniated ones) e.g.:
/etc/systemd/system/postgresql@.service.wants/pg_receivewal@.service

which then get started because of postgresql@15.service being enabled.

With the presets added the units remain disabled.

reported in our community forum:
https://forum.proxmox.com/threads/.130704/

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
debian-12-bookworm-pmg-8-64/systemd-presets

index ae95972cc28a9b0e936c1fe06bc5c781e4fe2c4e..2711b480158fc2e5eccf823b8781421c0e5b6f9f 100644 (file)
@@ -1 +1,5 @@
 disable clamav-clamonacc.service
+disable pg_basebackup@.timer
+disable pg_basebackup@.timer
+disable pg_dump@.timer
+disable pg_receivewal@.service