rc.local and service manager for Alpine Linux.
- Shell 100%
| etc | ||
| LICENSE | ||
| README.md | ||
| VERSION | ||
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