From: | H Visage <hvisage(at)envisage(dot)co(dot)za> |
---|---|
To: | pgsql-pkg-yum(at)postgresql(dot)org |
Subject: | postgresql94-setup problems on centos7 |
Date: | 2015-09-15 23:10:42 |
Message-ID: | CAG-v9Ki2HmVm6S_AyY+RmTjFMjCYvAt8bAPo_mw0GL8ccsda7A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-pkg-yum |
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(at)envisage(dot)co(dot)za
From | Date | Subject | |
---|---|---|---|
Next Message | H Visage | 2015-09-15 23:21:23 | PGLOG to be based on PGDATA please |
Previous Message | Devrim GÜNDÜZ | 2015-09-15 05:27:08 | Re: init script for pgpool |