* updated README.md with systemd-support

This commit is contained in:
luuloe 2017-11-02 20:28:24 +00:00
parent 3e7fefc926
commit 41e62ee680
1 changed files with 20 additions and 0 deletions

View File

@ -82,6 +82,26 @@ Usage:
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:
---------------