zabbix_agent: Create /var/run/zabbix in initscript

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-03-08 10:04:28 +00:00
parent 661fdb02c2
commit 7996c5fee9
2 changed files with 5 additions and 1 deletions

View File

@@ -17,6 +17,11 @@
case "${1}" in
start)
if [ ! -d "/var/run/zabbix" ]; then
mkdir -p /var/run/zabbix
chown zabbix.zabbix /var/run/zabbix
fi
boot_mesg "Starting Zabbix Agent..."
loadproc /usr/sbin/zabbix_agentd -c /etc/zabbix_agentd/zabbix_agentd.conf
;;

View File

@@ -27,6 +27,5 @@
/var/run/ovpnserver.log file 644 nobody nobody
/var/run/openvpn dir 644 nobody nobody
/var/run/zabbix dir 755 zabbix zabbix
# End /etc/sysconfig/createfiles