* updated README.md

This commit is contained in:
luuloe 2017-11-02 20:35:02 +00:00
parent 41e62ee680
commit 81faaa5d48
1 changed files with 10 additions and 2 deletions

View File

@ -85,18 +85,26 @@ Please note running **mbusd** on default Modbus TCP port (502) requires root pri
systemd:
---------------
**mbusd** has [systemd](https://wiki.archlinux.org/index.php/systemd) support. (`sudo make install`) installs the (`mbusd@.service`) file on systems running systemd.
**mbusd** has [systemd](https://wiki.archlinux.org/index.php/systemd) support. The build system detects whether the system has systemd after which `sudo make install` installs the `mbusd@.service` file on systems with systemd active.
The **mbusd** service can be started via:
# sudo systemctl start mbusd@<serial port>.service
To see the **mbusd** service status:
# sudo systemctl status mbusd@<serial port>.service
To monitor the **mbusd** service:
# sudo journalctl -u mbusd@<serial port>.service -f -n 10
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:
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