Run Proxy and Server as zabbix right from the start

tags/zabbix-4.0.2-4
Daniel Berteaud 6 years ago
parent 62f61ed73a
commit bb482643ff
  1. 2
      zabbix-proxy.service
  2. 2
      zabbix-server.service

@ -6,6 +6,8 @@ After=syslog.target network.target
Type=simple Type=simple
ExecStart=/usr/sbin/zabbix_proxy --config /etc/zabbix/zabbix_proxy.conf --foreground ExecStart=/usr/sbin/zabbix_proxy --config /etc/zabbix/zabbix_proxy.conf --foreground
ExecReload=/usr/sbin/zabbix_proxy -R config_cache_reload ExecReload=/usr/sbin/zabbix_proxy -R config_cache_reload
User=zabbix
Group=zabbix
CPUShares=512 CPUShares=512
MemoryLimit=500M MemoryLimit=500M
BlockIOWeight=500 BlockIOWeight=500

@ -6,6 +6,8 @@ After=syslog.target network.target
Type=simple Type=simple
ExecStart=/usr/sbin/zabbix_server --config /etc/zabbix/zabbix_server.conf --foreground ExecStart=/usr/sbin/zabbix_server --config /etc/zabbix/zabbix_server.conf --foreground
ExecReload=/usr/sbin/zabbix_server -R config_cache_reload ExecReload=/usr/sbin/zabbix_server -R config_cache_reload
User=zabbix
Group=zabbix
MemoryLimit=2048M MemoryLimit=2048M
BlockIOWeight=500 BlockIOWeight=500
PrivateTmp=yes PrivateTmp=yes

Loading…
Cancel
Save