diff --git a/srcpkgs/zabbix/files/zabbix-agent/run b/srcpkgs/zabbix/files/zabbix-agent/run index c32093b2db3..d2ddae9360e 100755 --- a/srcpkgs/zabbix/files/zabbix-agent/run +++ b/srcpkgs/zabbix/files/zabbix-agent/run @@ -1,3 +1,3 @@ #!/bin/sh -install -d -m0750 -o _zabbix_agent -g _zabbix_agent /var/run/zabbix-agent +install -d -m0750 -o _zabbix_agent -g _zabbix_agent /run/zabbix-agent chpst -u _zabbix_agent:_zabbix_agent zabbix_agentd -f -c /etc/zabbix_agentd.conf diff --git a/srcpkgs/zabbix/files/zabbix-proxy/run b/srcpkgs/zabbix/files/zabbix-proxy/run index 678fc6e0bc4..5b6685de0ef 100755 --- a/srcpkgs/zabbix/files/zabbix-proxy/run +++ b/srcpkgs/zabbix/files/zabbix-proxy/run @@ -1,3 +1,3 @@ #!/bin/sh -install -d -m0750 -o _zabbix_proxy -g _zabbix_proxy /var/run/zabbix-proxy +install -d -m0750 -o _zabbix_proxy -g _zabbix_proxy /run/zabbix-proxy chpst -u _zabbix_proxy:_zabbix_proxy zabbix_proxy -f -c /etc/zabbix_proxy.conf diff --git a/srcpkgs/zabbix/files/zabbix-server/run b/srcpkgs/zabbix/files/zabbix-server/run index 97e62451ac9..09c7bfaa92b 100755 --- a/srcpkgs/zabbix/files/zabbix-server/run +++ b/srcpkgs/zabbix/files/zabbix-server/run @@ -1,5 +1,5 @@ #!/bin/sh sv start mysqld >/dev/null || exit 1 -install -d -m0750 -o _zabbix_server -g _zabbix_server /var/run/zabbix-server +install -d -m0750 -o _zabbix_server -g _zabbix_server /run/zabbix-server chpst -u _zabbix_server:_zabbix_server zabbix_server -f -c /etc/zabbix_server.conf diff --git a/srcpkgs/zabbix/template b/srcpkgs/zabbix/template index 54b2ff97c22..50ec83d94dd 100644 --- a/srcpkgs/zabbix/template +++ b/srcpkgs/zabbix/template @@ -32,7 +32,7 @@ pre_install() { for file in server agentd proxy; do sed -i conf/zabbix_${file}.conf \ -e "s|# SNMPTrapperFile=/tmp|SNMPTrapperFile=/var/log/zabbix-${file}|" \ - -e "s|# PidFile=/tmp|PidFile=/var/run/zabbix-${file}|" \ + -e "s|# PidFile=/tmp|PidFile=/run/zabbix-${file}|" \ -e "s|LogFile=/tmp|LogFile=/var/log/zabbix-${file}|" done sed -i conf/zabbix_server.conf -e "s|# DBSocket=.*|DBSocket=/run/mysqld/mysqld.sock|"