blob: f6bd6500d343e028b34ab4fe2afa7b24d56e7d5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{% set zabbix_command = 'ip vrf exec ' ~ vrf ~ ' ' if vrf is vyos_defined else '' %}
[Unit]
After=
After=vyos-router.service
ConditionPathExists=
ConditionPathExists=/run/zabbix/zabbix-agent2.conf
[Service]
User=
User=root
EnvironmentFile=
ExecStart=
ExecStart={{ zabbix_command }}/usr/sbin/zabbix_agent2 --config /run/zabbix/zabbix-agent2.conf --foreground
WorkingDirectory=
WorkingDirectory=/run/zabbix
Restart=always
RestartSec=10
|