diff options
Diffstat (limited to 'community/zabbix/zabbix-agent2.initd')
-rw-r--r-- | community/zabbix/zabbix-agent2.initd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/community/zabbix/zabbix-agent2.initd b/community/zabbix/zabbix-agent2.initd index 4693ef47572..e988e8f0870 100644 --- a/community/zabbix/zabbix-agent2.initd +++ b/community/zabbix/zabbix-agent2.initd @@ -2,7 +2,11 @@ command=/usr/sbin/zabbix_agent2 supervisor="supervise-daemon" +command_user="zabbix:zabbix" -pre_start() { +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 } |