Restructure for packaging

This commit is contained in:
2025-01-08 18:34:51 -05:00
parent 2ad9158cfe
commit a21a4355e5
12 changed files with 147 additions and 0 deletions

14
systemd/pgmon@.service Normal file
View File

@@ -0,0 +1,14 @@
[unit]
Description=PostgreSQL Monitoring Bridge
#PartOf=pgmon.service
#Before=pgmon.service
After=network.target
[Service]
ExecStart=/usr/local/bin/pgmon.py /etc/pgmon/%i.cfg
ExecReload=kill -HUP $MAINPID
Restart=on-failure
Type=exec
[Install]
WantedBy=multi-user.target