More work on getting packaging working

This commit is contained in:
2025-01-08 20:58:52 -05:00
parent a21a4355e5
commit 292c6bfd80
5 changed files with 29 additions and 9 deletions

14
systemd/pgmon.service Normal file
View File

@@ -0,0 +1,14 @@
# This is a meta unit modeled after the PostgreSQL unit file from the Debian
# packages.
[Unit]
Description=PostgreSQL monitoring bridge
[Service]
Type=oneshot
ExecStart=/bin/true
ExecReload=/bin/true
RemainAfterExit=on
[Install]
WantedBy=multi-user.target

View File

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