geoip-shell
geoip-shell copied to clipboard
OpenRC persistence
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.