Created
November 6, 2019 11:37
-
-
Save cherts/53948decb8d57d5ad4dd2c9741cdbac9 to your computer and use it in GitHub Desktop.
zabbix-server.service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Zabbix Server | |
| After=syslog.target | |
| After=network.target | |
| [Service] | |
| Environment="CONFFILE=/etc/zabbix/zabbix_server.conf" | |
| EnvironmentFile=-/etc/default/zabbix-server | |
| Type=forking | |
| Restart=on-failure | |
| PIDFile=/run/zabbix/zabbix_server.pid | |
| KillMode=control-group | |
| ExecStart=/usr/sbin/zabbix_server -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