pgmon/systemd/pgmon@.service

17 lines
342 B
SYSTEMD
Raw Normal View History

2024-06-02 03:46:30 +00:00
[unit]
Description=PostgreSQL Monitoring Bridge
2025-01-09 01:58:52 +00:00
PartOf=pgmon.service
Before=pgmon.service
2024-06-02 03:46:30 +00:00
After=network.target
[Service]
EnvironmentFile=/etc/pgmon/%i-service.conf
User=${SERVICE_USER:-postgres}
2025-01-09 01:58:52 +00:00
ExecStart=/usr/local/bin/pgmon /etc/pgmon/%i.yml
ExecReload=kill -HUP $MAINPID
2024-06-02 03:46:30 +00:00
Restart=on-failure
Type=exec
2024-06-02 03:46:30 +00:00
[Install]
WantedBy=multi-user.target