erpalma / throttled

Workaround for Intel throttling issues in Linux.
MIT License
2.68k stars 166 forks source link

[Alpine Linux] Throttled daemon lacks executable permission out of the box #368

Closed spacebanana420 closed 6 hours ago

spacebanana420 commented 9 hours ago

I am running Alpine Linux on Edge branch with testing repository enabled.

When attempting to run rc-update add throttled as root, the error shows up:

 * rc-update: service `throttled' is not executable

When attempting to manually start throttled with rc-service throttled start as root, the error shows up:

 * rc-service: Permission denied

Throttled is indeed installed in /usr/lib/throttled/throttled.py and marked as executable and can be run as root. I guess as a temporary workaround I can run it directly.

spacebanana420 commented 9 hours ago

Update: the daemon can be successfully started/enabled once I mark it as executable too. OpenRC daemons normally have executable permissions, but for some reason throttled doesn't.

This fixes it:

chmod +x /etc/init.d/throttled

I can now start/enable the service with rc-update and rc-service

spacebanana420 commented 6 hours ago

I moved this issue to the Alpine package issues so I will close this one.

spacebanana420 commented 6 hours ago

https://gitlab.alpinelinux.org/alpine/aports/-/issues/16670