public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] systemd + postgresql is non-obvious to me
@ 2014-07-15 11:31 Alexander Berntsen
  2014-07-15 11:36 ` Pacho Ramos
  0 siblings, 1 reply; 13+ messages in thread
From: Alexander Berntsen @ 2014-07-15 11:31 UTC (permalink / raw
  To: gentoo-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

# emerge postgresql-server
  ...

# emerge --config dev-db/postgresql-server:9.3
  ...

# systemctl start postgresql-server-9.3
  Job for postgresql-9.3.service failed. See 'systemctl status
  postgresql-9.3.service' and 'journalctl -xn' for details.

# systemctl status postgresql-9.3.service
  ● postgresql-9.3.service - PostgreSQL database server
  ...
  Process: 24145 ExecStart=/usr/lib/postgresql-9.3/bin/pg_ctl start -D
${PGDATA} -s -l ${DATA_DIR}/postmaster.log -o -p ${PGPORT}
- --data-directory=${DATA_DIR} -w -t 300 (code=exited, status=1/FAILURE)
  ...
  Jul 15 13:17:23 hackintosh pg_ctl[24145]: pg_ctl: could not start
  server
  Jul 15 13:17:23 hackintosh pg_ctl[24145]: Examine the log output.
  Jul 15 13:17:23 hackintosh systemd[1]: postgresql-9.3.service:
  control process exited, code=exited status=1
  Jul 15 13:17:23 hackintosh systemd[1]: Failed to start PostgreSQL
  database server.
  Jul 15 13:17:23 hackintosh systemd[1]: Unit postgresql-9.3.service
  entered failed state.


# cat /var/lib/postgresql/9.3/data/postmaster.log
  FATAL:  could not create lock file "/run/postgresql
  /.s.PGSQL.5432.lock": No such file or directory


***

To alleviate this I needed to run "systemd-tmpfiles --create". This
was non-obvious to me. Sounds like a packaging issue that I need to do
it in the first place?
- -- 
Alexander
bernalex@gentoo.org
https://secure.plaimi.net/~alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iF4EAREIAAYFAlPFEQcACgkQRtClrXBQc7U73QD/bsI/9hp9XhNT9rBuNwiZUVu/
u4YbjfuN5KztqwM8XR4BAJZvsdAz9AxkpIJoOgeOfCKTEytTv27RmiGsSZnLND96
=9lQr
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2014-09-01 17:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-15 11:31 [gentoo-dev] systemd + postgresql is non-obvious to me Alexander Berntsen
2014-07-15 11:36 ` Pacho Ramos
     [not found]   ` <CAGfcS_mosw_epYZP6YCa6Ve7HswdwCgTdxt8dUY4u26+mDnowA@mail.gmail.com>
2014-07-15 11:44     ` Pacho Ramos
2014-07-15 12:51   ` Alexander Berntsen
2014-07-15 12:52   ` Ian Stakenvicius
2014-08-22 17:23     ` Aaron W. Swenson
2014-08-22 18:07       ` Rich Freeman
2014-08-22 18:42         ` Canek Peláez Valdés
2014-08-23  1:51         ` Mike Gilbert
2014-09-01 15:46         ` Aaron W. Swenson
2014-09-01 16:09           ` Canek Peláez Valdés
2014-09-01 16:36             ` Aaron W. Swenson
2014-09-01 17:06           ` Rich Freeman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox