void-packages/srcpkgs/zabbix/files/zabbix-agent/run

6 lines
225 B
Bash
Executable File

#!/bin/sh
chmod 0750 /var/run/zabbix-agent /var/log/zabbix-agent
chown _zabbix_agent:_zabbix_agent /var/run/zabbix-agent /var/log/zabbix-agent
chpst -u _zabbix_agent:_zabbix_agent zabbix_agentd -f -c /etc/zabbix_agentd.conf