# # !!! This file is managed by Ansible !!! # [Unit] Description=Serial to TCP gateway. Requires=network.target After=network-online.target Wants=network-online.target [Service] Environment=SERIAL_DEVICE=/dev/{{ services.serial2tcp.device }} Environment=PORT={{ services.serial2tcp.port | default(2342) }} ExecStartPre=stty -F /dev/{{ services.serial2tcp.device }} raw -echo -echoe -echok speed {{ services.serial2tcp.baudrate | default(9600) }} ExecStart=/usr/bin/serial2tcp Restart=on-failure RestartSec=1 StandardOutput=journal StandardError=journa [Install] WantedBy=multi-user.target