systemd startup script

On my Debian 12 based home server I wanted to set the CPU frequency scaling governor to "powersave" upon boot. The cpupower package does not have a default configuration that is applied on startup, so I had to do this myself.

With systemd 252.17-1~deb12u1 I had to do the following:

Description=Configure kernel to use "powersave" cpu scaling governor
ExecStart=cpupower frequency-set -g powersave

Then I only had to enable it:

$ systemctl enable cpupower-config.service

Written by Christian Weiske.

Comments? Please send an e-mail.