zabbix_agent: Create /var/run/zabbix in initscript
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 8 Mar 2019 10:04:28 +0000 (10:04 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 8 Mar 2019 10:04:28 +0000 (10:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/packages/zabbix_agentd
src/initscripts/sysconfig/createfiles

index df6124c..bffbc48 100644 (file)
 
 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
                 ;;
index dd40cb3..cf7d6e1 100644 (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