Artix Linux Forum

Init systems => S6 => Topic started by: Idonthaveaname on 13 October 2021, 05:48:58

Title: s6 service for cpupower doesn't have a /etc/s6/config/cpupower.conf file
Post by: Idonthaveaname on 13 October 2021, 05:48:58
Code: [Select]
pacman -Ql cpupower-s6

cpupower-s6 /etc/
cpupower-s6 /etc/s6/
cpupower-s6 /etc/s6/sv/
cpupower-s6 /etc/s6/sv/cpupower/
cpupower-s6 /etc/s6/sv/cpupower/dependencies
cpupower-s6 /etc/s6/sv/cpupower/type
cpupower-s6 /etc/s6/sv/cpupower/up

First noticed when i tried to start cpupower service using s6-rc, it complains about a missing /etc/s6/config/cpupower.conf file and won't start, using pacman -Ql shows that cpupower-s6 doesn't provide that file
Title: Re: s6 service for cpupower doesn't have a /etc/s6/config/cpupower.conf file
Post by: capezotte on 13 October 2021, 13:12:24
Running sudo touch /etc/s6/config/cpupower.conf should at least allow the service to start (if it has requires no environment variables).
Title: Re: s6 service for cpupower doesn't have a /etc/s6/config/cpupower.conf file
Post by: Dudemanguy on 13 October 2021, 15:37:36
The up script was reading the wrong path. It actually should have read /etc/default/cpupower which comes with the cpupower package. That has now been fixed and pushed. Thanks for the report. Just as a word of caution, using single quotes like in the example for "governor" won't work with execline. Double quotes or no quotes at all is what should be used.