Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zc489-0000O2-Lh for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 16 Sep 2015 04:15:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zc489-0006RD-67 for pgsql-pkg-yum@arkaria.postgresql.org; Wed, 16 Sep 2015 04:15:37 +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 1ZbzNE-0005bp-Mq for pgsql-pkg-yum@postgresql.org; Tue, 15 Sep 2015 23:10:52 +0000 Received: from mail-vk0-f53.google.com ([209.85.213.53]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1ZbzN6-0005Ly-VG for pgsql-pkg-yum@postgresql.org; Tue, 15 Sep 2015 23:10:51 +0000 Received: by vkfp126 with SMTP id p126so90011753vkf.3 for ; Tue, 15 Sep 2015 16:10:42 -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:date:message-id:subject:from:to :content-type; bh=ZNAayRLcbWjjN07SmXJbgbUbgCv18J2JF0uczKdVQxw=; b=laQZbhHtuYHa/+kCycSmKPv5RZfMNkOX67g5MaX6GwTFxDNW9n3J4JgNQTEdh4XSmI 9aRStns0TZ09RKbpdPir9OvWJ9asbDTjz4AaAMWK04O9YPohbSvaxbhp8P/Nl8wt2HC+ GgmuJ7EEyS8HqsA3ig0ipeqtY5/yoMpnA6srqDi9UHn1pTHvuSbQE+c+wh6hMe2Brsxq bIFbwFShCesKut8YkA2vRZ3kZ63cihCByQbYlyHUs9jdWKeiEIgxQUB1HHyYz7Q8phY9 +FBKBlYFpoqlQWbCSmj1m3LfTI2SxzvzjBKPngicstHSc+gMlmFlOWalYAhS2APRQPP3 AwUQ== X-Gm-Message-State: ALoCoQnaTE0c2KCUF2PLnfOxlJrGvypGTr3dC+qtPrUE8jglJA5oxyNMImj25LcO48L4Win0NNlW MIME-Version: 1.0 X-Received: by 10.31.159.149 with SMTP id i143mr22782568vke.112.1442358642046; Tue, 15 Sep 2015 16:10:42 -0700 (PDT) Received: by 10.103.49.199 with HTTP; Tue, 15 Sep 2015 16:10:42 -0700 (PDT) Date: Wed, 16 Sep 2015 01:10:42 +0200 Message-ID: Subject: postgresql94-setup problems on centos7 From: H Visage To: pgsql-pkg-yum@postgresql.org Content-Type: multipart/alternative; boundary=001a11425a4a7f9289051fd14ab3 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 --001a11425a4a7f9289051fd14ab3 Content-Type: text/plain; charset=UTF-8 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 ) -- --- Hendrik Visage Envisage Systems / Envisage Cloud Solutions 084-612-5345 or 083-675-5506 hvisage@envisage.co.za --001a11425a4a7f9289051fd14ab3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi there,

=C2=A0I'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/sy= stemd/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 = 9;]'
+ '[' -f /lib/systemd/system/Bulk.service ']'+ echo 'Could not find systemd unit file Bulk.service'
Could n= ot find systemd unit file Bulk.service

the test *should* = be:
=C2=A0 -f /etc/systemd/system/multi-user.target.wants/${S= ERVICE}.service

(Especially as it's default service f= ile gets installed/linked from /etc/systemd/system/multi-user.target.wants/= postgresql-9.4.service )

--
---
Hendrik Visage
Envisage Systems / Envisage Cloud Solutions<= br>084-612-5345 or 083-675-5506
hvisage@envisage.co.za
--001a11425a4a7f9289051fd14ab3--