diff --git a/init/systemd/ser2sock.service b/init/systemd/ser2sock.service new file mode 100644 index 0000000..97680b0 --- /dev/null +++ b/init/systemd/ser2sock.service @@ -0,0 +1,11 @@ +[Unit] +Description=Proxy that allows tcp connections to serial ports +After=syslog.target network.target + +[Service] +Type=forking +ExecStart=/usr/local/bin/ser2sock -d +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target