Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1225935

Bug#894906: linux-cpupower: provide a systemd service and a default config file

From Francesco Poli <invernomuto@paranoici.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#894906: linux-cpupower: provide a systemd service and a default config file
Date 2024-12-28 18:00 +0100
Message-ID <JYIkp-3uft-1@gated-at.bofh.it> (permalink)
References (3 earlier) <JmZmh-cslE-5@gated-at.bofh.it> <JprxM-e2mQ-7@gated-at.bofh.it> <JpvUJ-e53M-7@gated-at.bofh.it> <vBcuZ-4Bk-1@gated-at.bofh.it> <JpvUJ-e53M-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Sun, 22 Sep 2024 16:37:37 +0200 Francesco Poli wrote:

[...]
> I reiterate the request to integrate the three files into the
> 'linux-cpupower' package, with the systemd service disabled by default.
[...]

I have further improved the 'cpupower.sh' after analyzing it with
shellcheck (Debian package 'shellcheck').

I am re-attaching the three files to this message, for clarity's sake.

> I acknowledge that they are probably sub-optimal and could be further
> generalized and/or enhanced.
> But, until someone comes up with a better solution, they are better
> than nothing...
> The current situation is that every user has to set up ad-hoc solutions
> (perhaps involving the deprecated 'rc.local' file or otherwise), unless
> he/she can leverage some desktop tool...
> 
> And, of course, any of you from the Debian Kernel Team can further
> improve the files at any time.
> But, please, first ship the three files in the package, without waiting
> for the perfect solution. This bug report has been open since April
> 2018... As Voltaire once said, the better is the enemy of the good.

Please, pretty please, ship the three files with the 'linux-cpupower'
package, setting the systemd service disabled by default.

Let's fix this bug once and for all!





N.B.:
For any user who wants to manually install the three attached files
*before* they are shipped by 'linux-cpupower', the commands are:

  # install -m 644 cpupower.default /etc/default/cpupower
  # install -m 755 cpupower.sh /usr/libexec/cpupower
  # install -m 644 cpupower.service /usr/lib/systemd/system/
  # systemctl daemon-reload

After this manual installation (or once the 'linux-cpupower' package
ships them and installs the systemd service disabled by default), the
administrator (root user) can edit /etc/default/cpupower as appropriate
and then issue the command:

  # systemctl enable --now cpupower.service



-- 
 http://www.inventati.org/frx/
 There's not a second to spare! To the laboratory!
..................................................... Francesco Poli .
 GnuPG key fpr == CA01 1147 9CD2 EFDF FB82  3925 3E1C 27E1 1F69 BFFE

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#894906: linux-cpupower: provide a systemd service and a default config file Francesco Poli <invernomuto@paranoici.org> - 2024-12-28 18:00 +0100

csiph-web