geoip-shell icon indicating copy to clipboard operation
geoip-shell copied to clipboard

OpenRC persistence

Open superjamie opened this issue 6 months ago • 3 comments

As discussed on https://github.com/friendly-bits/geoip-shell/issues/14 this patch series detects when busybox init is actually OpenRC init, such as on Alpine Linux. inittab is used to detect when OpenRC is actually the init system, not just when it's installed.

Install starts the OpenRC local.d service as a replacement for busybox crond not supporting @reboot and creates a startup persistence script. Uninstall removes the persistence script but does not stop local.d in case the user is using it for something else.

Tested okay on Alpine Linux 3.20.

Documentation adds the OpenRC change, and provides manual steps for other init systems where persistence isn't automated yet.

superjamie avatar Aug 16 '24 11:08 superjamie