summaryrefslogtreecommitdiff
path: root/data/templates/zabbix-agent/10-override.conf.j2
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-08-10 16:09:04 +0100
committerGitHub <noreply@github.com>2023-08-10 16:09:04 +0100
commitbfbd7273b33119854b4285a44b13bfcdcc2d1564 (patch)
tree3e4b5bd89cd5de8cccd90e9a6668517e7790fe20 /data/templates/zabbix-agent/10-override.conf.j2
parente146f9c300335ecdcc118343e4eab3df30cd56de (diff)
parentf9acf743cc27727d38dcbff6fb59534b5a1b443f (diff)
downloadvyos-1x-bfbd7273b33119854b4285a44b13bfcdcc2d1564.tar.gz
vyos-1x-bfbd7273b33119854b4285a44b13bfcdcc2d1564.zip
Merge pull request #2140 from sever-sever/T5448
T5448: Add service zabbix-agent
Diffstat (limited to 'data/templates/zabbix-agent/10-override.conf.j2')
-rw-r--r--data/templates/zabbix-agent/10-override.conf.j214
1 files changed, 14 insertions, 0 deletions
diff --git a/data/templates/zabbix-agent/10-override.conf.j2 b/data/templates/zabbix-agent/10-override.conf.j2
new file mode 100644
index 000000000..7c296e8fd
--- /dev/null
+++ b/data/templates/zabbix-agent/10-override.conf.j2
@@ -0,0 +1,14 @@
+[Unit]
+After=
+After=vyos-router.service
+ConditionPathExists=
+ConditionPathExists=/run/zabbix/zabbix-agent2.conf
+
+[Service]
+EnvironmentFile=
+ExecStart=
+ExecStart=/usr/sbin/zabbix_agent2 --config /run/zabbix/zabbix-agent2.conf --foreground
+WorkingDirectory=
+WorkingDirectory=/run/zabbix
+Restart=always
+RestartSec=10