Powernap 2.21 fails to start on Ubuntu 16.04.1

Bug #1608057 reported by David Partridge on 2016-07-30
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
powernap
Undecided
Unassigned

Bug Description

When trying to start powernap I get

Failed to start powernap.service: Unit network.service failed to load:

Change /lib/systemd/system/powernap.service

From:
 Requires=network.service
 After=network.service

To:
 Requires=networking.service
 After=networking.service

Add line at end of [Services] section:

 RemainAfterExit=yes

After changes whole file looks like:

amonra@Charon:~$ cat /lib/systemd/system/powernap.service
[Unit]
Description=PowerNap
Requires=networking.service
After=networking.service

[Service]
Type=forking
ExecStartPre=/usr/share/powernap/powernap-ethtool
ExecStart=/usr/sbin/powernapd
ExecStop=-/usr/sbin/powerwake-now
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
amonra@Charon:~$

Dave

Related branches

Steve Roberts (drgrumpy) wrote :

Don't forget to do:
systemctl daemon-reload

for the changes to take effect before
systemctl start powernap

Woonhak Kang (woonhak) wrote :

I'm using Ubuntu 18.04 and I've also affected this bug.
I followed description above, and it resolved my issue.

highmancd (highmancd) wrote :

Thank you! its works!

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers