diff --git a/README.md b/README.md index 10b6516..fe18050 100644 --- a/README.md +++ b/README.md @@ -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@.service + +To start the **mbusd** service on system boot: + + # sudo systenctl enable mbusd@.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/ -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: ---------------