Gentoo Archives: gentoo-dev

From: Alexander Berntsen <bernalex@g.o>
To: gentoo-dev@g.o
Subject: [gentoo-dev] systemd + postgresql is non-obvious to me
Date: Tue, 15 Jul 2014 11:31:30
Message-Id: 53C51107.8090308@gentoo.org
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA256
3
4 # emerge postgresql-server
5 ...
6
7 # emerge --config dev-db/postgresql-server:9.3
8 ...
9
10 # systemctl start postgresql-server-9.3
11 Job for postgresql-9.3.service failed. See 'systemctl status
12 postgresql-9.3.service' and 'journalctl -xn' for details.
13
14 # systemctl status postgresql-9.3.service
15 ● postgresql-9.3.service - PostgreSQL database server
16 ...
17 Process: 24145 ExecStart=/usr/lib/postgresql-9.3/bin/pg_ctl start -D
18 ${PGDATA} -s -l ${DATA_DIR}/postmaster.log -o -p ${PGPORT}
19 - --data-directory=${DATA_DIR} -w -t 300 (code=exited, status=1/FAILURE)
20 ...
21 Jul 15 13:17:23 hackintosh pg_ctl[24145]: pg_ctl: could not start
22 server
23 Jul 15 13:17:23 hackintosh pg_ctl[24145]: Examine the log output.
24 Jul 15 13:17:23 hackintosh systemd[1]: postgresql-9.3.service:
25 control process exited, code=exited status=1
26 Jul 15 13:17:23 hackintosh systemd[1]: Failed to start PostgreSQL
27 database server.
28 Jul 15 13:17:23 hackintosh systemd[1]: Unit postgresql-9.3.service
29 entered failed state.
30
31
32 # cat /var/lib/postgresql/9.3/data/postmaster.log
33 FATAL: could not create lock file "/run/postgresql
34 /.s.PGSQL.5432.lock": No such file or directory
35
36
37 ***
38
39 To alleviate this I needed to run "systemd-tmpfiles --create". This
40 was non-obvious to me. Sounds like a packaging issue that I need to do
41 it in the first place?
42 - --
43 Alexander
44 bernalex@g.o
45 https://secure.plaimi.net/~alexander
46 -----BEGIN PGP SIGNATURE-----
47 Version: GnuPG v2.0.22 (GNU/Linux)
48 Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
49
50 iF4EAREIAAYFAlPFEQcACgkQRtClrXBQc7U73QD/bsI/9hp9XhNT9rBuNwiZUVu/
51 u4YbjfuN5KztqwM8XR4BAJZvsdAz9AxkpIJoOgeOfCKTEytTv27RmiGsSZnLND96
52 =9lQr
53 -----END PGP SIGNATURE-----

Replies