Files
Michael Heimpold fc34acf93f ser2net: add a systemd service file
This adds and installs a simple systemd service for ser2net.
The service is only started in case a non-zero configuration file
/etc/ser2net/ser2net.yaml exists.

Additionally, this configuration file a marked as such in the recipe.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-10 21:54:07 -07:00

14 lines
265 B
Desktop File

[Unit]
Description=Serial port to network proxy
Documentation=man:ser2net(8)
After=network.target
Wants=network.target
ConditionFileNotEmpty=@SYSCONFDIR@/ser2net/ser2net.yaml
[Service]
Type=exec
ExecStart=@SBINDIR@/ser2net -n
[Install]
WantedBy=multi-user.target