Netatalk / netatalk

Netatalk is a Free and Open Source AFP fileserver. A *NIX or BSD system running Netatalk is capable of serving many Macintosh clients simultaneously as an AppleShare file server.
https://netatalk.io
GNU General Public License v2.0
354 stars 87 forks source link

Default to no init scripts if service management command not found #1747

Closed singular0 closed 5 days ago

singular0 commented 6 days ago

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.

rdmark commented 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.

singular0 commented 5 days ago

For consistency I've added check for any service management cmd that may be required by particular init style.