Powertop Fails as Systemd Service in 16.04

Bug #1578171 reported by Buzzing Robot
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
powertop (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Powertop fails when used via Systemd service in 16.04.

This unit located in /etc/systemd/system:

[Unit]
Description=PowerTOP autotuner

[Service]
Type=oneshot
ExecStart=/usr/sbin/powertop --auto-tune

[Install]
WantedBy=multi-user.target

can be enabled successfully (systemctl enable powertop.service).

On a restart, systemctl status powertop.status shows it is inactive.

The unit works correctly in pre-release Fedora 24.

Revision history for this message
Buzzing Robot (buzzingrobot) wrote :

Typo: make "powertop.status" read" powertop.service".

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in powertop (Ubuntu):
status: New → Confirmed
Revision history for this message
Michael Wögerbauer (michael-woegerbauer) wrote :

I tried your code (thank you!) and saved it as
1. non-executable and owned by root
2. ending with two paragraphs (that's what I found the other .service-files to be like, but that maybe isn't compulsory)
3. saved it in /lib/systemd/system/powertop.service
4. created a symbolic link by doing
   sudo cp -s /lib/systemd/system/powertop.service /etc/systemd/system/multi-user.target.wants/
5. then sudo systemctl enable powertop.service

Result:
"sudo systemctl start powertop.service" WORKS

BUT the question is still, why is the service not loading automatically at startup?

Revision history for this message
inigoml (inigoml) wrote :

Powertop is not a daemon. It's an executable that exits after running.
So, although it's run on boot, it exits after executing.

I think there is no problem here.

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.