Starting powertop --auto-tune from systemd

Michael Biebl biebl at debian.org
Sun Mar 11 20:06:21 GMT 2018


Am 10.03.2018 um 18:55 schrieb Rainer Dorsch:
> [Please follow-up to debian-user]
> 
> Hello,
> 
> I run
> 
> /usr/bin/powertop --auto-tune
> 
> to optimize the power consumption of my system. Running it manually works 
> nicely. When I try to run from systemd, I see no effect :-/
> 
> I followed
> 
> https://wiki.archlinux.org/index.php/Powertop#Apply_settings
> 
> added
> 
> root at master:~# cat /etc/systemd/system/powertop.service 
> [Unit]
> Description=Powertop tunings
> 
> [Service]
> ExecStart=/usr/bin/powertop --auto-tune
> RemainAfterExit=true
> 
> [Install]
> WantedBy=multi-user.target
> root at master:~# 
> 
> enabled it for systemd and got
> 
> root at master:~# systemctl status powertop.service 
> ● powertop.service - Powertop tunings
>    Loaded: loaded (/etc/systemd/system/powertop.service; enabled; vendor 
> preset: enabled)
>    Active: active (exited) (Result: exit-code) since Sat 2018-03-10 18:29:53 
> CET; 22min ago
>   Process: 642 ExecStart=/usr/bin/powertop --auto-tune (code=exited, 
> status=203/EXEC)
>  Main PID: 642 (code=exited, status=203/EXEC)

systemct tells you there was a problem trying to execute the binary.
Possibly because it's the wrong path?
$ whereis powertop
powertop: /usr/sbin/powertop /usr/share/man/man8/powertop.8.gz

(note bin vs sbin)
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180311/cd066271/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list