Powernap 2.21 fails to start on Ubuntu 16.04.1

Bug #1608057 reported by David Partridge
24
This bug affects 5 people
Affects Status Importance Assigned to Milestone
powernap
New
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

Revision history for this message
Steve Roberts (drgrumpy) wrote :

Don't forget to do:
systemctl daemon-reload

for the changes to take effect before
systemctl start powernap

Revision history for this message
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.

Revision history for this message
highmancd (highmancd) wrote :

Thank you! its works!

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.