Skip to content

Commit

Permalink
Add support for more complex serial port device names (fixes #81)
Browse files Browse the repository at this point in the history
  • Loading branch information
3cky committed Feb 17, 2022
1 parent 55889a7 commit 7c26860
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ The **mbusd** service can be started via:

# systemctl start mbusd@<serial port>.service

where `<serial port>` is serial port device name (like `ttyUSB0`).
where `<serial port>` is escaped serial port device short name (like `ttyUSB0` for `/dev/ttyUSB0` device name or `serial-rs485` for `/dev/serial/rs485` device name).

**mbusd** started by systemd will read its configuration from file named `/etc/mbusd/mbusd-<serial port>.conf`.
This way it's possible to run multiple **mbusd** instances with different configurations.
Expand Down
2 changes: 1 addition & 1 deletion systemd-units/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=network-online.target
Wants=network-online.target

[Service]
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/mbusd -d -v2 -L - -c @CMAKE_INSTALL_FULL_SYSCONFDIR@/mbusd/mbusd-%i.conf -p /dev/%i
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/mbusd -d -v2 -L - -c @CMAKE_INSTALL_FULL_SYSCONFDIR@/mbusd/mbusd-%i.conf -p /dev/%I
Restart=on-failure
RestartSec=1
StandardOutput=journal
Expand Down

0 comments on commit 7c26860

Please sign in to comment.