Add autotools files and init scripts
This commit is contained in:
16
pgmon@.service
Normal file
16
pgmon@.service
Normal file
@@ -0,0 +1,16 @@
|
||||
[unit]
|
||||
Description=PostgreSQL Monitoring Bridge
|
||||
#PartOf=pgmon.service
|
||||
#Before=pgmon.service
|
||||
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
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user