[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