mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
zabbix: switch from /var/run to /run
This commit is contained in:
parent
367def4b7f
commit
e70e9013ca
4 changed files with 4 additions and 4 deletions
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/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
|
chpst -u _zabbix_agent:_zabbix_agent zabbix_agentd -f -c /etc/zabbix_agentd.conf
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/sh
|
#!/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
|
chpst -u _zabbix_proxy:_zabbix_proxy zabbix_proxy -f -c /etc/zabbix_proxy.conf
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
sv start mysqld >/dev/null || exit 1
|
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
|
chpst -u _zabbix_server:_zabbix_server zabbix_server -f -c /etc/zabbix_server.conf
|
||||||
|
|
|
@ -32,7 +32,7 @@ pre_install() {
|
||||||
for file in server agentd proxy; do
|
for file in server agentd proxy; do
|
||||||
sed -i conf/zabbix_${file}.conf \
|
sed -i conf/zabbix_${file}.conf \
|
||||||
-e "s|# SNMPTrapperFile=/tmp|SNMPTrapperFile=/var/log/zabbix-${file}|" \
|
-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}|"
|
-e "s|LogFile=/tmp|LogFile=/var/log/zabbix-${file}|"
|
||||||
done
|
done
|
||||||
sed -i conf/zabbix_server.conf -e "s|# DBSocket=.*|DBSocket=/run/mysqld/mysqld.sock|"
|
sed -i conf/zabbix_server.conf -e "s|# DBSocket=.*|DBSocket=/run/mysqld/mysqld.sock|"
|
||||||
|
|
Loading…
Add table
Reference in a new issue