https://www.techrepublic.com/article/how-to-enable-wake-on-lan-in-ubuntu-server-18-04/
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:
Enable the new service with the command: *
Finally, start the service with the command: