ctucx.git: serial2tcp

serial to tcp/ip bridge

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
[Unit]
Description=Serial to TCP gateway.
Requires=network.target
After=network-online.target
Wants=network-online.target

[Service]
Environment=SERIAL_DEVICE=/dev/%i
Environment=PORT=2342
ExecStartPre=stty -F /dev/%i raw -echo -echoe -echok speed 9600
ExecStart=/usr/bin/serial2tcp
Restart=on-failure
RestartSec=1
StandardOutput=journal
StandardError=journa

[Install]
WantedBy=multi-user.target