summaryrefslogtreecommitdiff
path: root/data/templates/sla/twamp-override.conf.j2
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-06-02 12:21:49 +0200
committerGitHub <noreply@github.com>2022-06-02 12:21:49 +0200
commitb9a26085b49397eb73e7110872b5c07015c911b4 (patch)
tree416246b95f828be5404f1ed3ebbacf409c5c42ba /data/templates/sla/twamp-override.conf.j2
parentc4d824d57d696bcf0e2a1e8e0fd87078e6eaadd3 (diff)
parentb8671b56c153055a2906af14f63b5818b189d808 (diff)
downloadvyos-1x-b9a26085b49397eb73e7110872b5c07015c911b4.tar.gz
vyos-1x-b9a26085b49397eb73e7110872b5c07015c911b4.zip
Merge pull request #1345 from sever-sever/T4222
sla: T4222: Add OWAMP and TWAMP for service sla
Diffstat (limited to 'data/templates/sla/twamp-override.conf.j2')
-rw-r--r--data/templates/sla/twamp-override.conf.j216
1 files changed, 16 insertions, 0 deletions
diff --git a/data/templates/sla/twamp-override.conf.j2 b/data/templates/sla/twamp-override.conf.j2
new file mode 100644
index 000000000..34bbd228b
--- /dev/null
+++ b/data/templates/sla/twamp-override.conf.j2
@@ -0,0 +1,16 @@
+[Unit]
+Description==TWAMP server
+After=vyos-router.service
+# Only start if there is a configuration file
+ConditionFileNotEmpty=/etc/twamp-server/twamp-server.conf
+
+[Service]
+KillMode=process
+Type=simple
+ExecStart=/usr/sbin/twampd -c /etc/twamp-server -R /var/run
+ExecReload=/bin/kill -HUP $MAINPID
+PIDFile=/run/twamp-server.pid
+LimitNOFILE=4096
+
+[Install]
+WantedBy=multi-user.target