diff --git a/systemd-units/mbusd@.service.in b/systemd-units/mbusd@.service.in index 3a8e2cb..1be74c3 100644 --- a/systemd-units/mbusd@.service.in +++ b/systemd-units/mbusd@.service.in @@ -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