Ceci est une ancienne révision du document !
https://www.techrepublic.com/article/how-to-enable-wake-on-lan-in-ubuntu-server-18-04/
sudo vi /etc/systemd/system/wol.service In that file, paste the following:
[Unit] Description=Configure Wake On LAN
[Service] Type=oneshot ExecStart=/sbin/ethtool -s INTERFACE wol g
[Install] WantedBy=basic.target
Save and close the file. Make systemd aware of the new script with the command:
sudo systemctl daemon-reload Enable the new service with the command:
sudo systemctl enable wol.service Finally, start the service with the command:
sudo systemctl start wol.service