Mail archive
alpine-aports

Re: [alpine-aports] [PATCH] main/nsd: copy new version of the OpenRC service from Gentoo

From: Sören Tempel <soeren_at_soeren-tempel.net>
Date: Sat, 19 Dec 2015 16:21:05 +0100

On 18.12.15, Valery Kartel wrote:
> if use the power and defaults of openrc-run, init-script with the same
> functionality will looks like:
> #!/sbin/openrc-run
>
> description="NSD is an authoritative-only, high performance, open source
> name server"
> checkconf="{NSD_CHECKCONF:-/usr/sbin/nsd-checkconf}
> cfgfile=${NSD_CONFIG:-/etc/nsd/nsd.conf}
> pidfile=$($checkconf -o pidfile $cfgfile)
> command=${NSD_BINARY:-/usr/sbin/nsd}
> command_args="-c $cfgfile"
> required_files="$cfgfile"
>
> depend() {
> need net
> use logger
> }
>
> start_pre() {
> ebegin
> checkpath --directory --owner nsd:nsd ${pidfile%/*}
> $checkconf $cfgfile
> eend $?
> }

I know I was just too lazy to write it. I will close this request, would
you mind submitting a new patch which uses your service instead?


---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sat Dec 19 2015 - 16:21:05 GMT