summaryrefslogtreecommitdiff
path: root/src/systemd/ser2net.service
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd/ser2net.service')
-rw-r--r--src/systemd/ser2net.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/systemd/ser2net.service b/src/systemd/ser2net.service
new file mode 100644
index 000000000..a5b4243af
--- /dev/null
+++ b/src/systemd/ser2net.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=Serial to Network Proxy
+ConditionPathExists=/run/ser2net/ser2net.conf
+After=vyos-router.service
+
+[Service]
+WorkingDirectory=/run/ser2net
+PIDFile=/run/ser2net/ser2net.pid
+ExecStart=/usr/sbin/ser2net -n -c /run/ser2net/ser2net.conf -P /run/ser2net/ser2net.pid -p localhost,2000
+Restart=always
+
+[Install]
+WantedBy=multi-user.target