Parent Directory | Revision Log | Revision Graph
import
1 | jpp | 1.1 | [Unit] |
2 | Description=Zabbix Agent 2 | ||
3 | After=syslog.target | ||
4 | After=network.target | ||
5 | |||
6 | [Service] | ||
7 | Environment="CONFFILE=/etc/zabbix/zabbix_agent2.conf" | ||
8 | EnvironmentFile=-/etc/sysconfig/zabbix-agent2 | ||
9 | Type=simple | ||
10 | Restart=on-failure | ||
11 | PIDFile=/run/zabbix/zabbix_agent2.pid | ||
12 | KillMode=control-group | ||
13 | ExecStart=/usr/sbin/zabbix_agent2 -c $CONFFILE | ||
14 | ExecStop=/bin/kill -SIGTERM $MAINPID | ||
15 | RestartSec=10s | ||
16 | User=zabbix | ||
17 | Group=zabbix | ||
18 | |||
19 | [Install] | ||
20 | WantedBy=multi-user.target |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |