1
0
mirror of https://github.com/3cky/mbusd synced 2025-10-26 23:46:44 +08:00

Add support for read configuration from file

This commit is contained in:
Victor Antonovich
2017-11-29 13:39:40 +03:00
parent 7fb5309551
commit 3ea208491a
12 changed files with 514 additions and 131 deletions

View File

@@ -3,7 +3,7 @@ Description=Modbus TCP to Modbus RTU (RS-232/485) gateway.
Requires=network.target
[Service]
ExecStart=@bindir@/mbusd -p /dev/%i -s 9600 -m 8N1 -P 502 -d -v2
ExecStart=@bindir@/mbusd -d -v2 -L - -c /etc/mbusd/mbusd-%i.conf -p /dev/%i
Restart=on-failure
RestartSec=1
StandardOutput=journal