Add online network requirements to the systemd service file (fix #58)

This commit is contained in:
Victor Antonovich 2020-05-21 13:59:53 +04:00
parent 88916fe82d
commit 0c1dcb727d

View File

@ -1,6 +1,8 @@
[Unit]
Description=Modbus TCP to Modbus RTU (RS-232/485) gateway.
Requires=network.target
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/mbusd -d -v2 -L - -c @CMAKE_INSTALL_FULL_SYSCONFDIR@/mbusd/mbusd-%i.conf -p /dev/%i