From 81faaa5d48082f96b40c09954d66a8626789bd97 Mon Sep 17 00:00:00 2001 From: luuloe Date: Thu, 2 Nov 2017 20:35:02 +0000 Subject: [PATCH] * updated README.md --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fe18050..8da1f63 100644 --- a/README.md +++ b/README.md @@ -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@.service +To see the **mbusd** service status: + + # sudo systemctl status mbusd@.service + +To monitor the **mbusd** service: + + # sudo journalctl -u mbusd@.service -f -n 10 + 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: +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