Answers
![linuxforuk2103_article_014_01_02](https://article-imgs.scribdassets.com/yuepsy0qo8filij/images/fileBZH9KSA1.jpg)
![linuxforuk2103_article_014_01_01](https://article-imgs.scribdassets.com/yuepsy0qo8filij/images/fileJGTZBV5L.jpg)
Q Sleepy server
I’ve upgraded my little home server box to Ubuntu 20.04. It’s set to go into sleep mode and I use a phone-based Wake-on-LAN app to wake it up when I need it again. This used to work fine even when the system on rare occasion needed a reboot. But after the upgrade it no longer works after a reboot.
I’ve followed a guide at http://bit. ly/lxf273wol to create a WOL systemd service, but it still won’t work after a reboot. I have to manually enable the WOL after which is fine until the next reboot. Any ideas?
Neil Moore
A Your systemd service isn’t starting up correctly. You can see this by running the following:
![linuxforuk2103_article_014_01_03](https://article-imgs.scribdassets.com/yuepsy0qo8filij/images/fileC2M1HSHH.jpg)
You say it works when you enable Wakeon-LAN manually. I suspect that you mean you’re running the ethtool command given in the guide: where INTERFACE is the name of our ethernet interface. The Systemd unit from that guide is:
![linuxforuk2103_article_014_01_04](https://article-imgs.scribdassets.com/yuepsy0qo8filij/images/file7IIG49L6.jpg)
![linuxforuk2103_article_014_01_05](https://article-imgs.scribdassets.com/yuepsy0qo8filij/images/fileIHBSLSZM.jpg)
Ensure you’ve checked the spellings as always this is case sensitive. This may have worked with older distros, but Ubuntu 20.04 installs the executable in /usr/sbin not /sbin. If it looks like you need to change the path in your unit file to reflect this, you can check that it now
You’re reading a preview, subscribe to read more.
Start your free 30 days