I've added the command "ip addr" to the exec file. This is written to the syslog: 2: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000 This shows, that eth0 isn't configured yet when the script is executed. But it should be executed after the network-online.target. So maybe it's a systemd issue.