Skip to content

Instantly share code, notes, and snippets.

@cherts
Created November 6, 2019 11:39
Show Gist options
  • Select an option

  • Save cherts/b67c5addaa7a9785e400788cea3cdde6 to your computer and use it in GitHub Desktop.

Select an option

Save cherts/b67c5addaa7a9785e400788cea3cdde6 to your computer and use it in GitHub Desktop.
zabbix-proxy.service
[Unit]
Description=Zabbix Proxy
After=syslog.target
After=network.target
[Service]
Environment="CONFFILE=/etc/zabbix/zabbix_proxy.conf"
EnvironmentFile=-/etc/default/zabbix-proxy
Type=forking
Restart=on-failure
PIDFile=/run/zabbix/zabbix_proxy.pid
KillMode=control-group
ExecStart=/usr/sbin/zabbix_proxy -c $CONFFILE
ExecStop=/bin/kill -SIGTERM $MAINPID
RestartSec=10s
TimeoutSec=infinity
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment