[Unit] Description=dmesg to network [Service] Type=oneshot ExecStartPre=/usr/bin/sh -c 'until ping -q -c1 192.168.1.138; do sleep 1; done' ExecStart=/usr/sbin/modprobe -v netconsole [Install] WantedBy=network-online.target