Zabbix Agent - Runit script/service
Hi,
Fairly new Artix user, coming from Arch.
I am running run it and am trying to get the zabbix agent2 working as a service, but I am having trouble doing so.
I installed zabbix-agent2 and created a user 'zabbix'.
I created /etc/runit/sv/zabbix_agent2 and /etc/runit/zabbix/run
#!/bin/sh
exec 2>&1; set -e
export USER="zabbix"
export GROUP="zabbix"
exec chpst -u "$USER:$GROUP" /usr/bin/zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf
After enabling the service, it stays 'down'.
I am lacking some kind of logging and don't really know how to troubleshoot.
Thanks for any help!