Powertop Fails as Systemd Service in 16.04

Bug #1578171 reported by Buzzing Robot on 2016-05-04
This bug affects 3 people
Affects Status Importance Assigned to Milestone
powertop (Ubuntu)

Bug Description

Powertop fails when used via Systemd service in 16.04.

This unit located in /etc/systemd/system:

Description=PowerTOP autotuner

ExecStart=/usr/sbin/powertop --auto-tune


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.

Buzzing Robot (buzzingrobot) wrote :

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

Launchpad Janitor (janitor) wrote :

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

Changed in powertop (Ubuntu):
status: New → Confirmed

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

"sudo systemctl start powertop.service" WORKS

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

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  Edit
Everyone can see this information.

Other bug subscribers