X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 1AC87DC7F59 for ; Sat, 19 Dec 2015 22:48:28 +0000 (UTC) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id A257EDC7F58 for ; Sat, 19 Dec 2015 22:48:26 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id l126so27325833wml.1 for ; Sat, 19 Dec 2015 14:48:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7vHqU7nwdMnCTe+CPCF5JZOwEKRuOky+BJWz+BKgnkM=; b=K2cEi3kimifyN/vT0LsS1uLD+GfsBqKDjcBRn8fbbSum+G/vgtcSaNYPd0jmjKvPXi WcUwREeo1NmgKI8f9XSLRb4ZeiX/E0tx1SRvU+3wP+8ZSrPqPp2JVinhzZhd0fT18wEZ A1BZWiaLdEb78kVIFGN2o6F+b4BEvGYgjL5FlsrSTbsgV4C/GHnkN4X3R43R65P9M7s8 qCQldfOo+zT0e7H0m2mjcPSdpCVp/lESc8ET4/WoWLbefYEaFgDtfo4pfxI8CWPclYIC eLDO8fAH5wHHn7r+XtdUdJAaq/fBnlI3809qXzWoFVTLE9Q8YUnbu4iIShXK6Zp5A5te jcPw== X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-Received: by 10.194.24.226 with SMTP id x2mr11583282wjf.43.1450565303750; Sat, 19 Dec 2015 14:48:23 -0800 (PST) Received: by 10.28.90.132 with HTTP; Sat, 19 Dec 2015 14:48:23 -0800 (PST) Received: by 10.28.90.132 with HTTP; Sat, 19 Dec 2015 14:48:23 -0800 (PST) In-Reply-To: <20151219152105.GA6969@francium.wlan.uni-bremen.de> References: <1450384389-29157-1-git-send-email-soeren+git@soeren-tempel.net> <20151219152105.GA6969@francium.wlan.uni-bremen.de> Date: Sun, 20 Dec 2015 00:48:23 +0200 Message-ID: Subject: Re: [alpine-aports] [PATCH] main/nsd: copy new version of the OpenRC service from Gentoo From: Valery Kartel To: =?UTF-8?Q?S=C3=B6ren_Tempel?= Cc: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=047d7b45066ea757ba0527480de4 X-Virus-Scanned: ClamAV using ClamSMTP --047d7b45066ea757ba0527480de4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I made a sample script for 30 seconds and did not test it. Yes, I'll made a commit after testing it. 19 =D0=B3=D1=80=D1=83=D0=B4. 2015 17:21 "S=C3=B6ren Tempel" =D0=BF=D0=B8=D1=88=D0=B5: > 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=3D"NSD is an authoritative-only, high performance, open sou= rce > > name server" > > checkconf=3D"{NSD_CHECKCONF:-/usr/sbin/nsd-checkconf} > > cfgfile=3D${NSD_CONFIG:-/etc/nsd/nsd.conf} > > pidfile=3D$($checkconf -o pidfile $cfgfile) > > command=3D${NSD_BINARY:-/usr/sbin/nsd} > > command_args=3D"-c $cfgfile" > > required_files=3D"$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? > --047d7b45066ea757ba0527480de4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I made a sample script for 30 seconds and did not test it. Y= es, I'll made a commit after testing it.

19 =D0=B3=D1=80=D1=83=D0=B4. 2015 17:21 "S= =C3=B6ren Tempel" <soer= en@soeren-tempel.net> =D0=BF=D0=B8=D1=88=D0=B5:
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=3D"NSD is an authoritative-only, high performance, op= en source
> name server"
> checkconf=3D"{NSD_CHECKCONF:-/usr/sbin/nsd-checkconf}
> cfgfile=3D${NSD_CONFIG:-/etc/nsd/nsd.conf}
> pidfile=3D$($checkconf -o pidfile $cfgfile)
> command=3D${NSD_BINARY:-/usr/sbin/nsd}
> command_args=3D"-c $cfgfile"
> required_files=3D"$cfgfile"
>
> depend() {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0need net
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0use logger
> }
>
> start_pre() {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ebegin
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0checkpath --directory --owner nsd:nsd= ${pidfile%/*}
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0$checkconf $cfgfile
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0eend $?
> }

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?
--047d7b45066ea757ba0527480de4-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---