rc.local and service manager for Alpine Linux.
- Shell 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
The tags API returns tags newest-first by date, so taking the first element meant a tag added later on an older branch, or a moving name like stable, would win over the highest version. Filter to the v<number> form and sort by version instead. Requesting 50 tags rather than 1: that is the per-page maximum this Forgejo returns whatever limit is asked for, so a repository with more than 50 version tags would need paging. |
||
| etc | ||
| APKBUILD | ||
| LICENSE | ||
| README.md | ||
local
rc.local and service manager for Alpine Linux.
Structure
etc/
rc.local # script executed at boot (customizable)
local.d/
rc.start # starts services listed in services
rc.stop # stops services listed in services (reverse order)
services # list of services to manage (one per line)
init.d/
rc-local # OpenRC service that runs rc.local
Flow
boot → local (OpenRC) → /etc/local.d/rc.start → services ↑
→ rc-local (OpenRC) → /etc/rc.local
halt → local (OpenRC) → /etc/local.d/rc.stop → services ↓ (reverse)
Services
Edit /etc/local.d/services to list services to manage at boot:
# one service per line, # to comment
nginx
sshd