From 0c1dcb727d56418ea2d2f0154932e2b052460faf Mon Sep 17 00:00:00 2001 From: Victor Antonovich Date: Thu, 21 May 2020 13:59:53 +0400 Subject: [PATCH] Add online network requirements to the systemd service file (fix #58) --- systemd-units/mbusd@.service.in | 2 ++ 1 file changed, 2 insertions(+) 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