]> git.proxmox.com Git - dab-pve-appliances.git/commit
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)
commite04b41eb953969cf5d4d654a082fe3f72316eb83
treee2baaeb5c96c3f5d5b9f3323ca6c587b97f380a4
parentda644ac5d884d8b2ccaf7c3e2e997a250b5bbe8f
pmg: disable postgres backup and replication services

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