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 7D2B4DC0595 for ; Mon, 16 May 2016 16:04:12 +0000 (UTC) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id F017ADC00A8 for ; Mon, 16 May 2016 16:04:11 +0000 (UTC) Received: by mail-lb0-f182.google.com with SMTP id h1so51706184lbj.3 for ; Mon, 16 May 2016 09:04:11 -0700 (PDT) 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; bh=AhW/tOkCZUnrWXZqJCSS7gIxZ0juD3Gs9JigUyDMbC4=; b=BV85YXovaG/YPcYVPEPrxgHSgIck7T5UKw/LvdDZgGWZbFj5Qvlv1zjM6IUIrV9Spx foOiX8OxR/O7EuXS5SscgCZ4TIYfPSuv4XE3v59eyXxjK1uwaxW6t1vVWXQt+N6QS65Y 4iZxSrMnikfj8HD7cEU9K6tBSvqpeLwXjBAZuEfb2aD1mUYCepMkK6EN1RD81p6smC2X 65uTGw9lP/F9JbOqrx5GrkwxhyUUBd6jylh2cjTdZkgCOWkNl5CGiymZ3fVrNz/3qDtH Bg3cyQG6fSV5hrB/EsWu4vIJFHzXxDEdgu1zPVp9K4gH8KGJLoUd89EwT6IVq727+N8i HcIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=AhW/tOkCZUnrWXZqJCSS7gIxZ0juD3Gs9JigUyDMbC4=; b=HhIeYVq3pEgaFGzvRD37ef4IEvVtn9NeOMv8iiYuX6b1uaGb89VzqDtTVrvSkuxz8G r/MdqLYqcS5EecT7lLw3aa5YyE3J3h1bQQVk+2Dxwv9RRNwBFj+MYj6yFkTKieV/Hoyg NvCcepjllt1sTHkef4paVTU6lqIGaF7pdwdkszl4/bhhK0W7QkbukOysoRR2/0CJceIY GIfNPfWVWQjXBe8taA1TccIxRBChMRgQX8FIR6YdxSSZL+ay2VqxsHgz/hGgdTYsWDOB pEAsAB0cnAzfvt2qwSweFPCZfzmyY1jlrjYf9X4Qg6J+cj0ioNVC0Rvz2pkaAZ6dB3Th TX/w== X-Gm-Message-State: AOPr4FVfJataed8mHvCWCMU/0iUKumsOjA2gcEX3YtuU9gnp61yx1SJpjdrekmpRPoGbg9IM3cs77sIjPmrdJQ== 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.112.9.200 with SMTP id c8mr11621399lbb.50.1463414650003; Mon, 16 May 2016 09:04:10 -0700 (PDT) Received: by 10.25.23.170 with HTTP; Mon, 16 May 2016 09:04:09 -0700 (PDT) Received: by 10.25.23.170 with HTTP; Mon, 16 May 2016 09:04:09 -0700 (PDT) In-Reply-To: <20160516173452.4b37bcbb@ncopa-desktop.alpinelinux.org> References: <1459753686-20614-1-git-send-email-valery.kartel@gmail.com> <20160516173452.4b37bcbb@ncopa-desktop.alpinelinux.org> Date: Mon, 16 May 2016 19:04:09 +0300 Message-ID: Subject: Re: [alpine-aports] [PATCH 1/2] main/dovecot: upgrade to 2.2.23, update init and logrotate scripts From: Valery Kartel To: Natanael Copa Cc: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=001a1135e4265f66cf0532f7c651 X-Virus-Scanned: ClamAV using ClamSMTP --001a1135e4265f66cf0532f7c651 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Pid dir must be owned by root:root, because ownership of all sockets are setted up by master process and their ownerships and access modes are setted up in dovecot's config file. 16 =D1=82=D1=80=D0=B0=D0=B2. 2016 18:34 "Natanael Copa" =D0=BF=D0=B8=D1=88=D0=B5: > Hi, > > sorry for late response > > On Mon, 4 Apr 2016 10:08:06 +0300 > Valery Kartel wrote: > > > --- > > main/dovecot/APKBUILD | 20 +++++++------- > > main/dovecot/dovecot.initd | 59 > +++++++++++++++--------------------------- > > main/dovecot/dovecot.logrotate | 2 +- > > 3 files changed, 32 insertions(+), 49 deletions(-) > > ... > > > - DOVECOT_BASEDIR=3D${DOVECOT_BASEDIR:-/run/dovecot} > > - DOVECOT_PIDFILE=3D${DOVECOT_BASEDIR}/master.pid > > - checkpath --directory --owner dovecot:dovecot --mode 0755 \ > > - ${DOVECOT_BASEDIR} > > -} > > - > > -start() { > > - checkconfig || return 1 > > - ebegin "Starting ${SVCNAME}" > > - start-stop-daemon --start --exec /usr/sbin/dovecot --pidfile > "${DOVECOT_PIDFILE}" -- -c "${DOVECOT_CONF}" > > +start_pre() { > > + ebegin > > + doveconf -c $cfgfile -x >/dev/null && \ > > + checkpath --directory ${pidfile%/*} > > Should the pidfile directory not be owned by dovecot:dovecot? > > -nc > --001a1135e4265f66cf0532f7c651 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi,

Pid dir must be owned by root:root, because ownership of all= sockets are setted up by master process and their ownerships and access mo= des are setted up in dovecot's config file.

16 =D1=82=D1=80=D0=B0=D0=B2. 2016 18:34 "Na= tanael Copa" <ncopa@alpine= linux.org> =D0=BF=D0=B8=D1=88=D0=B5:
Hi,

sorry for late response

On Mon,=C2=A0 4 Apr 2016 10:08:06 +0300
Valery Kartel <valery.kartel@= gmail.com> wrote:

> ---
>=C2=A0 main/dovecot/APKBUILD=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | 20 +++= ++++-------
>=C2=A0 main/dovecot/dovecot.initd=C2=A0 =C2=A0 =C2=A0| 59 +++++++++++++= ++---------------------------
>=C2=A0 main/dovecot/dovecot.logrotate |=C2=A0 2 +-
>=C2=A0 3 files changed, 32 insertions(+), 49 deletions(-)

...

> -=C2=A0 =C2=A0 =C2=A0DOVECOT_BASEDIR=3D${DOVECOT_BASEDIR:-/run/dovecot= }
> -=C2=A0 =C2=A0 =C2=A0DOVECOT_PIDFILE=3D${DOVECOT_BASEDIR}/master.pid > -=C2=A0 =C2=A0 =C2=A0checkpath --directory --owner dovecot:dovecot --m= ode 0755 \
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0${DOVECOT_BASEDIR} > -}
> -
> -start() {
> -=C2=A0 =C2=A0 =C2=A0checkconfig || return 1
> -=C2=A0 =C2=A0 =C2=A0ebegin "Starting ${SVCNAME}"
> -=C2=A0 =C2=A0 =C2=A0start-stop-daemon --start --exec /usr/sbin/doveco= t --pidfile "${DOVECOT_PIDFILE}" -- -c "${DOVECOT_CONF}"= ;
> +start_pre() {
> +=C2=A0 =C2=A0 =C2=A0ebegin
> +=C2=A0 =C2=A0 =C2=A0doveconf -c $cfgfile -x >/dev/null && = \
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0checkpath --directory= ${pidfile%/*}

Should the pidfile directory not be owned by dovecot:dovecot?

-nc
--001a1135e4265f66cf0532f7c651-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---