Failed to enable unit: Unit WoL.service does not exist
So, the command sudo ethtool enp13s0 | grep Wake-on returned the value d, which means WoL is disabled. I decided to create a service that would run the command ethtool -s enp13s0 wol g. The content of the file /etc/default/WoL.sh:
Execution permission was granted.
The content of the file /etc/systemd/system/WoL.service with permissions 775:
When trying to activate the service with the command sudo systemctl enable WoL.service, I get the error Failed to enable unit: Unit file service does not exist. What am I doing wrong?
Solution:Jump to solution
Ok, fine, I copied the contents of the service, deleted the file and created it via terminal using sudo nano. Now the system sees it and turns it on. Judging by the properties of the file, the permissions are exactly the same as they were. Why it worked now, I have no idea
11 Replies
The thing is, the exact same files worked in nobara
did you reload systemctl?
Yeah try sudo systemctl daemon-reload and then try enabling it again
Yes, of course.
hmm thats weird, try using lowercase for the service file
wol.service?
yeah
also when enabling iirc you dont need to type the .service extension
It didn't work
can you give me the full step on how you do it?
i just tried it myself and it worked
Well, downloaded these files from my google drive. I used sudo mv to move them from the "downloads" folder to where they should be.
Solution
Ok, fine, I copied the contents of the service, deleted the file and created it via terminal using sudo nano. Now the system sees it and turns it on. Judging by the properties of the file, the permissions are exactly the same as they were. Why it worked now, I have no idea