pgmon/openrc/pgmon.openrc

16 lines
300 B
Plaintext
Raw Normal View History

2024-06-02 03:46:30 +00:00
#!/sbin/openrc-run
extra_started_commands="reload"
2024-10-25 06:45:14 +00:00
supervisor="supervise-daemon"
agent_name=${SVCNAME#pgmon.}
2024-06-02 03:46:30 +00:00
agent_name=${agent_name:-pgmon}
2024-10-25 06:45:14 +00:00
CONFIG_FILE="/etc/pgmon/${agent_name}.yml"
2024-06-02 03:46:30 +00:00
2024-06-06 04:51:04 +00:00
command="/usr/bin/pgmon"
2024-10-25 06:45:14 +00:00
command_args="'$CONFIG_FILE'"
2024-06-06 04:51:04 +00:00
command_background="true"
2024-06-06 04:44:05 +00:00
command_user="zabbix:zabbix"