Closed singular0 closed 5 days ago
@singular0 Thanks for the the PR! I wonder if it would be worth to do the same for OpenRC? It is our default for Alpine and Gentoo for a "normal" OS setup, but there's no guarantee it is installed under all circumstances (such as in a Docker container). A minor consideration, but worth a thought.
For consistency I've added check for any service management cmd that may be required by particular init style.
In case system is assumed to have particular init style, but corresponding service management command (such as
systemctl
,rc-service
,rcctl
, etc.) is not found, default to no init scripts. In case-Dwith-init-style
was explicitly specified, fail the build.