vitabaks / postgresql_cluster

PostgreSQL High-Availability Cluster (based on Patroni). Automating with Ansible.
https://postgresql-cluster.org
MIT License
1.69k stars 411 forks source link

PgBouncer: Use the RuntimeDirectory option in the systemd unit file. #506

Closed vitabaks closed 11 months ago

vitabaks commented 11 months ago

In this update, we have transitioned from using PermissionsStartOnly and ExecStartPre to RuntimeDirectory and RuntimeDirectoryMode in the systemd unit files for the pgBouncer service. This change aims to improve the management of service runtime directories and ensure a more robust and modern configuration.

Details of the Changes:

1. Deprecation of PermissionsStartOnly:

2. Implementation of RuntimeDirectory:

3. Setting RuntimeDirectoryMode:

4. Improved Reliability and Compatibility:

Conclusion:

The shift to using RuntimeDirectory and RuntimeDirectoryMode in systemd unit files for pgBouncer provides a more reliable, secure, and contemporary configuration. This simplifies the management of the service's resources and enhances its stability in operational environments.