pgmon/systemd/pgmon@.service
James Campbell 55b9b16deb
Install to /usr/bin
* Standardize all install methods to use /usr/bin rather than some of
  them using /usr/local/bin

* Make the init script executable in install-openrc
2025-06-04 01:16:59 -04:00

17 lines
339 B
Desktop File

[unit]
Description=PostgreSQL Monitoring Bridge
PartOf=pgmon.service
Before=pgmon.service
After=network.target
[Service]
EnvironmentFile=/etc/pgmon/%i-service.conf
User=${SERVICE_USER:-postgres}
ExecStart=/usr/bin/pgmon -c /etc/pgmon/%i.yml
ExecReload=kill -HUP $MAINPID
Restart=on-failure
Type=exec
[Install]
WantedBy=multi-user.target