[arch-general] /etc/tmpfiles.d

Chris Sakalis chrissakalis at gmail.com
Mon Sep 17 12:17:25 EDT 2012


> Does that means that I need to move all the content from /etc/rc.local to
> /etc/tmpfiles.d? For example this is my actual /etc/rc.local:

Only if you no longer boot with initscripts.

> for i in 0 1 2 3; do cpufreq-set -c $i -g powersave; done  ## sets
> powersave cpufreq governor for all CPU cores
> #echo -n 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
> echo -n 20 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
> If this is the case, how do you guys would convert the FOR loop!?

I think that tempfiles can not execute commands, only create/write to
files. If you want to run some commands, you should probably create
some custom unit files.

Chris Sakalis

More information about the arch-general mailing list