1 2 3 4 5 6 7 8 9 10 11 12 13
[Unit] Description=Wake-on-LAN for %i Requires=network.target After=network.target network-online.target [Service] Restart=on-failure RestartSec=10s ExecStart=/usr/bin/ethtool -s %i wol g Type=simple [Install] WantedBy=multi-user.target