Simplify the code by switching to http for IPC

This commit is contained in:
2024-10-24 12:23:19 -04:00
parent 9fd03f5027
commit c13951e16e
10 changed files with 559 additions and 1874 deletions

View File

@@ -5,12 +5,10 @@ Description=PostgreSQL Monitoring Bridge
After=network.target
[Service]
ExecStart=/usr/local/bin/pgmon.py --server --config /etc/pgmon/%i.cfg
ExecReload=/user/local/bin/pgmon.py --reload --config /etc/pgmon/%i.cfg
RuntimeDirectory=pgmon
RuntimeDirectoryMode=0755
PIDFile=/run/pgmon/%i.pid
ExecStart=/usr/local/bin/pgmon.py /etc/pgmon/%i.cfg
ExecReload=kill -HUP $MAINPID
Restart=on-failure
Type=exec
[Install]
WantedBy=multi-user.target