rc.local and service manager for Alpine Linux.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
sam 0f6794b445 build: pick the highest version tag, not the newest one
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.
2026-09-02 15:57:11 +02:00
etc Aggiorna README.md 2026-03-27 18:35:43 +00:00
APKBUILD build: pick the highest version tag, not the newest one 2026-09-02 15:57:11 +02:00
LICENSE Aggiungi LICENSE 2026-03-27 18:36:40 +00:00
README.md Aggiorna README.md 2026-03-27 18:35:43 +00:00

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