#!/sbin/openrc-run

command=/usr/sbin/zabbix_agent2
supervisor="supervise-daemon"
command_user="zabbix:zabbix"

start_pre() {
    checkpath --directory --owner zabbix:zabbix /var/log/zabbix
    # fix log files created as root
    checkpath --file --owner zabbix:zabbix /var/log/zabbix/zabbix_agent2.log
    checkpath --directory --owner zabbix:zabbix /run/zabbix
}
