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

@@ -1,15 +0,0 @@
#!/sbin/openrc-run
extra_started_commands="reload"
supervisor="supervise-daemon"
agent_name=${SVCNAME#pgmon.}
agent_name=${agent_name:-pgmon}
CONFIG_FILE="/etc/pgmon/${agent_name}.yml"
command="/usr/bin/pgmon"
command_args="'$CONFIG_FILE'"
command_background="true"
command_user="zabbix:zabbix"