Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zc85H-0000uE-79 for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 16 Sep 2015 08:28:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zc85G-0005pc-Pj for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 16 Sep 2015 08:28:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zc85D-0005mU-NX for pgsql-pkg-yum@postgresql.org; Wed, 16 Sep 2015 08:28:51 +0000 Received: from ns3.gunduz.org ([107.170.88.27] helo=ns1.gunduz.org) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zc85B-0000hR-2A for pgsql-pkg-yum@postgresql.org; Wed, 16 Sep 2015 08:28:50 +0000 Received: from asus-laptop-03.gunduz.org (unknown [85.99.241.196]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ns1.gunduz.org (Postfix) with ESMTPSA id 0013440161; Wed, 16 Sep 2015 08:28:48 +0000 (UTC) Message-ID: <1442392124.3641.17.camel@gunduz.org> Subject: Re: postgresql94-setup problems on centos7 From: Devrim =?ISO-8859-1?Q?G=DCND=DCZ?= To: H Visage , pgsql-pkg-yum@postgresql.org Date: Wed, 16 Sep 2015 11:28:44 +0300 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 (3.16.5-1.fc22) Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -1.9 (-) 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 Hi, I think our version is true. See the first few lines of the service file, please: http://git.postgresql.org/gitweb/?p=pgrpms.git;a=blob_plain;f=rpm/redha t/9.4/postgresql/EL-7/postgresql-9.4.service;hb=HEAD 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ÜNDÜZ Principal Systems Engineer @ EnterpriseDB: http://www.enterprisedb.com PostgreSQL Danışmanı/Consultant, Red Hat Certified Engineer Twitter: @DevrimGunduz , @DevrimGunduzTR -- Sent via pgsql-pkg-yum mailing list (pgsql-pkg-yum@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-pkg-yum