LouisBrunner / avahi2dns

Small DNS server which interface with avahi (perfect for Alpine Linux and musl)
MIT License
22 stars 4 forks source link

Add an openrc file for use in alpine linux #3

Closed espindola closed 11 months ago

espindola commented 11 months ago

With this avahi2dns can be used as a system daemon by coping openrc/avahi2dns to /etc/init.d/avahi2dns and the compiled binary to somewhere in the system path.

sonarcloud[bot] commented 11 months ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

LouisBrunner commented 11 months ago

LGTM, I just have one question: how would a user install that file on their system? Each release has pre-build binaries for all major OS and arch combo but not this file?

espindola commented 11 months ago

LGTM, I just have one question: how would a user install that file on their system? Each release has pre-build binaries for all major OS and arch combo but not this file?

avahi2dns is still not include in alpine unfortunately: avahi packages.

So for now installation is:

$ go build
$ sudo cp avahi2dns /usr/bin
$ sudo cp  openrc/avahi2dns /etc/init.d/
$ sudo rc-update add avahi2dns