© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
BazziteB
Bazzite•14mo ago•
15 replies
Грюндик

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:
#!/bin/bash
ethtool -s enp13s0 wol g
#!/bin/bash
ethtool -s enp13s0 wol g

Execution permission was granted.
The content of the file /etc/systemd/system/WoL.service with permissions 775:
[Unit]
Description=Enabling WoL

[Service]
#path to our program
ExecStart=/etc/default/WoL.sh
Type=oneshot
[Install]
WantedBy=default.target
[Unit]
Description=Enabling WoL

[Service]
#path to our program
ExecStart=/etc/default/WoL.sh
Type=oneshot
[Install]
WantedBy=default.target

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
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
Jump to solution
BazziteJoin
The operating system for the next generation of gamers.
29,482Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Failed to enable unit: Unit file lactd.service does not exist
BazziteBBazzite / 🛟bazzite-help
17mo ago
ujust enable-supergfxctl does not seem to exist
BazziteBBazzite / 🛟bazzite-help
12mo ago
Failed to start anaconda.service
BazziteBBazzite / 🛟bazzite-help
2y ago
anaconda service failed
BazziteBBazzite / 🛟bazzite-help
3y ago