Make systemd user configurable and create log directory

This commit is contained in:
2025-01-11 01:18:03 -05:00
parent 2c87a41048
commit 7b58b4a3ed
6 changed files with 20 additions and 4 deletions

View File

@@ -5,6 +5,8 @@ Before=pgmon.service
After=network.target
[Service]
EnvironmentFile=/etc/pgmon/%i-service.conf
User=${SERVICE_USER:-postgres}
ExecStart=/usr/local/bin/pgmon /etc/pgmon/%i.yml
ExecReload=kill -HUP $MAINPID
Restart=on-failure