summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-05-23 20:14:41 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-18 21:45:14 +0200
commit4384a2973993b8b0f572912026f45e9ee910e3ec (patch)
tree88943c5ae286a5809b3d1ac8a59e936304f783af /src/systemd
parent4b5793bced424034daa944400eb8c2f198d0d0d2 (diff)
downloadvyos-1x-4384a2973993b8b0f572912026f45e9ee910e3ec.tar.gz
vyos-1x-4384a2973993b8b0f572912026f45e9ee910e3ec.zip
console-server: T2490: initial support
Diffstat (limited to 'src/systemd')
-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