1 |
jpp |
1.1 |
[Unit] |
2 |
|
|
Description=Zabbix Server |
3 |
|
|
After=syslog.target |
4 |
|
|
After=network.target |
5 |
|
|
After=mysql.service |
6 |
|
|
After=mysqld.service |
7 |
|
|
After=mariadb.service |
8 |
|
|
After=postgresql.service |
9 |
|
|
|
10 |
|
|
[Service] |
11 |
|
|
Environment="CONFFILE=/etc/zabbix/zabbix_server.conf" |
12 |
|
|
EnvironmentFile=-/etc/sysconfig/zabbix-server |
13 |
|
|
Type=forking |
14 |
|
|
Restart=on-failure |
15 |
|
|
PIDFile=/run/zabbix/zabbix_server.pid |
16 |
|
|
KillMode=control-group |
17 |
|
|
ExecStart=/usr/sbin/zabbix_server -c $CONFFILE |
18 |
|
|
ExecStop=/bin/kill -SIGTERM $MAINPID |
19 |
|
|
RestartSec=10s |
20 |
|
|
TimeoutSec=0 |
21 |
|
|
|
22 |
|
|
[Install] |
23 |
|
|
WantedBy=multi-user.target |