mirror of
https://github.com/3cky/mbusd.git
synced 2024-09-27 03:53:02 +02:00
* updated README.md with systemd-support
This commit is contained in:
parent
3e7fefc926
commit
41e62ee680
20
README.md
20
README.md
@ -82,6 +82,26 @@ Usage:
|
|||||||
|
|
||||||
Please note running **mbusd** on default Modbus TCP port (502) requires root privileges!
|
Please note running **mbusd** on default Modbus TCP port (502) requires root privileges!
|
||||||
|
|
||||||
|
systemd:
|
||||||
|
---------------
|
||||||
|
|
||||||
|
**mbusd** has [systemd](https://wiki.archlinux.org/index.php/systemd) support. (`sudo make install`) installs the (`mbusd@.service`) file on systems running systemd.
|
||||||
|
The **mbusd** service can be started via:
|
||||||
|
|
||||||
|
# sudo systemctl start mbusd@<serial port>.service
|
||||||
|
|
||||||
|
To start the **mbusd** service on system boot:
|
||||||
|
|
||||||
|
# sudo systenctl enable mbusd@<serial port>.service
|
||||||
|
|
||||||
|
Please check systemd documentation for other usefull systemd [commands](https://wiki.archlinux.org/index.php/systemd)
|
||||||
|
|
||||||
|
The checked in (`mbusd@.service`) starts **mbusd** equivalent to the following command:
|
||||||
|
|
||||||
|
# /usr/local/bin/mbusd -p /dev/<serial port> -s 9600 -m 8N1 -P 502 -d -v2
|
||||||
|
|
||||||
|
Feel free to modify the service file locally with your own desired configuration. Or if you have some spare time please implement service file generation via autoconf.
|
||||||
|
|
||||||
Reporting bugs:
|
Reporting bugs:
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user