throttled: service lacks executable permission out of the box
Package Information
- Package name: throttled
- Package version: 0.10.0-r0
- Alpine version: 3.21.0_alpha20240923
- Alpine architecture: x86_64
Summary
Throttled's daemon cannot be enabled/started by OpenRC without user intervention because the daemon lacks executable permissions.
Steps to reproduce
- Switch to Alpine Edge and enable testing repository
- As root, install throttled and attempt to enable/start the service:
apk add throttled
rc-update add throttled
rc-service throttled start
When enabling/adding the service, OpenRC complains the daemon "throttled" is not executable:
* rc-update: service `throttled' is not executable
When starting the service, OpenRC says "permission denied":
* rc-service: Permission denied
Throttled is indeed installed in /usr/lib/throttled/throttled.py
and marked as executable and can be run as root, but the daemon located in /etc/init.d/throttled
lacks executable permission.
Running:
chmod +x /etc/init.d/throttled
Fixes the issue and the service can now be started/enabled.