Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZcAXZ-0007QL-EP for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 16 Sep 2015 11:06:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZcAXY-00064T-W0 for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 16 Sep 2015 11:06:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zc89P-0005v4-HF for pgsql-pkg-yum@postgresql.org; Wed, 16 Sep 2015 08:33:11 +0000 Received: from mail-vk0-f51.google.com ([209.85.213.51]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Zc89L-0007lI-41 for pgsql-pkg-yum@postgresql.org; Wed, 16 Sep 2015 08:33:10 +0000 Received: by vkhf67 with SMTP id f67so96461662vkh.1 for ; Wed, 16 Sep 2015 01:33:04 -0700 (PDT) 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:content-type; bh=LdikbjvP56sM4F3E1LPDq55aHZ9sXbeHZhCDDLn1Y14=; b=Y3PFsD+gYAECiYrUXJNr9KAI+zxT9ACvD6uMBNwSBIDIFeUeG7n+54nBIKb7EOPHQ8 W212+D3DpcuiN65Z2JDfZtiUmF/wXVis2JoZJ4fywkvejviV4CiZeQjjHn91CL9QgJ+r K8mVyHEO5AErn92QAf/DO7m733ewTHdnqtVLwn/zhXwuIkuBsp8idqmQwc6Nd/bn+w2L +KOkuNaqulud4M9+PguwBr9do/Ye92ddoF3E1InyhF91ndI3uyTRY6LkRK3U+R16BOOU 29vWRkD7gtNgmoaJmOLXDkuHS9eucKlmSwQLQf2e5oAAZBAXc6y8RgjDUxdRb1wMcFo3 xRRA== X-Gm-Message-State: ALoCoQk4Yq+ojxyCssrGl43lXGug65PoNgn2sKl5YFLFAMJPezBr+OCVSmbNpY5oZUFb4wVdesFz MIME-Version: 1.0 X-Received: by 10.31.156.85 with SMTP id f82mr27829573vke.25.1442392384438; Wed, 16 Sep 2015 01:33:04 -0700 (PDT) Received: by 10.103.49.199 with HTTP; Wed, 16 Sep 2015 01:33:04 -0700 (PDT) In-Reply-To: <1442392124.3641.17.camel@gunduz.org> References: <1442392124.3641.17.camel@gunduz.org> Date: Wed, 16 Sep 2015 10:33:04 +0200 Message-ID: Subject: Re: postgresql94-setup problems on centos7 From: H Visage To: =?UTF-8?B?RGV2cmltIEfDnE5Ew5xa?= Cc: pgsql-pkg-yum@postgresql.org Content-Type: multipart/alternative; boundary=001a1141bf86b3b74e051fd92529 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-pkg-yum Precedence: bulk Sender: pgsql-pkg-yum-owner@postgresql.org --001a1141bf86b3b74e051fd92529 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Devrim, Thank you, was just confusing that the file I had to remove wasn't in /etc/systemd/system but in the .../multi-user.target directory eventually got it going On Wed, Sep 16, 2015 at 10:28 AM, Devrim G=C3=9CND=C3=9CZ wrote: > > > Hi, > > I think our version is true. > > See the first few lines of the service file, please: > > http://git.postgresql.org/gitweb/?p=3Dpgrpms.git;a=3Dblob_plain;f=3Drpm/r= edha > t/9.4/postgresql/EL-7/postgresql-9.4.service;hb=3DHEAD > > To create a new service, just create your file under > /etc/systemd/system/web.service . > > > systemctl enable web.service > > will create the *symlinks* under multi-user.target.wants directory. > > I hope that is clear. > > Regards, Devrim > > > On Wed, 2015-09-16 at 01:10 +0200, H Visage wrote: > > Hi there, > > > > I'd like to add a couple of different database clusters, and want > > them > > named different as systemd services. So I created the Bulk.service & > > Web.service files in /etc/systemd/system/multi-user.target.wants > > which > > includes back the /lib/systemd/system/postgresql-9.4.service > > > > The problem is this fails when I want to do a > > "/usr/pgsql-9.4/bin/postgresql94-setup initdb Bulk" > > > > tracing the problem, it fails with: > > > > + '[' -f /etc/systemd/system/Bulk.service ']' > > + '[' -f /lib/systemd/system/Bulk.service ']' > > + echo 'Could not find systemd unit file Bulk.service' > > Could not find systemd unit file Bulk.service > > > > the test *should* be: > > -f /etc/systemd/system/multi-user.target.wants/${SERVICE}.service > > > > (Especially as it's default service file gets installed/linked from > > /etc/systemd/system/multi-user.target.wants/postgresql-9.4.service ) > > > > -- > Devrim G=C3=9CND=C3=9CZ > Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com > PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Enginee= r > Twitter: @DevrimGunduz , @DevrimGunduzTR > > > > --=20 --- Hendrik Visage Envisage Systems / Envisage Cloud Solutions 084-612-5345 or 083-675-5506 hvisage@envisage.co.za --001a1141bf86b3b74e051fd92529 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Devrim,

Thank you, was just conf= using that the file I had to remove wasn't in /etc/systemd/system but i= n the .../multi-user.target directory

eventually got it going<= br>

On Wed, = Sep 16, 2015 at 10:28 AM, Devrim G=C3=9CND=C3=9CZ <devrim@gunduz.org&g= t; wrote:


Hi,

I think our version is true.

See the first few lines of the service file, please:

http://git.postgresql.org/gitweb/?p=3Dpgrpms.git;a=3Dblob= _plain;f=3Drpm/redha
t/9.4/postgresql/EL-7/postgresql-9.4.service;hb=3DHEAD


To create a new service, just create your file under
/etc/systemd/system/web.service .


systemctl enable web.service

will create the *symlinks* under multi-user.target.wants directory.

I hope that is clear.

Regards, Devrim


On Wed, 2015-09-16 at 01:10 +0200, H Visage wrote:
> Hi there,
>
>=C2=A0 I'd like to add a couple of different database clusters, and= want
> them
> named different as systemd services. So I created the Bulk.service &am= p;
> Web.service files in /etc/systemd/system/multi-user.target.wants
> which
> includes back the /lib/systemd/system/postgresql-9.4.service
>
> The problem is this fails when I want to do a
> "/usr/pgsql-9.4/bin/postgresql94-setup initdb Bulk"
>
> tracing the problem, it fails with:
>
> + '[' -f /etc/systemd/system/Bulk.service ']'
> + '[' -f /lib/systemd/system/Bulk.service ']'
> + echo 'Could not find systemd unit file Bulk.service'
> Could not find systemd unit file Bulk.service
>
> the test *should* be:
>=C2=A0 =C2=A0-f /etc/systemd/system/multi-user.target.wants/${SERVICE}.= service
>
> (Especially as it's default service file gets installed/linked fro= m
> /etc/systemd/system/multi-user.target.wants/postgresql-9.4.service ) >

--
Devrim G=C3=9CND= =C3=9CZ
Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com
PostgreSQL Dan=C4=B1=C5=9Fman=C4=B1/Consultant, Red Hat Certified Engineer<= br> Twitter: @DevrimGunduz , @DevrimGunduzTR






--
--001a1141bf86b3b74e051fd92529--