Package logrotate script

This commit is contained in:
2025-01-15 01:34:04 -05:00
parent ab7381f0ca
commit 0cd1fe0148
6 changed files with 10 additions and 4 deletions

View File

@@ -7,9 +7,11 @@ supervisor="supervise-daemon"
agent_name=${SVCNAME#pgmon.}
agent_name=${agent_name:-pgmon}
PGMON_USER="${PGMON_USER:-postgres}"
PGMON_GROUP="${PGMON_GROUP:-$PGMON_USER}"
CONFIG_FILE="/etc/pgmon/${agent_name}.yml"
command="/usr/bin/pgmon"
command_args="'$CONFIG_FILE'"
command_background="true"
command_user="zabbix:zabbix"
command_user="${PGMON_USER}:${PGMON_GROUP}"