EBox ~ # /etc/init.d/postgresql-9.1 start * Use of the opts variable is deprecated and will be * removed in the future. * Please use extra_commands or extra_started_commands. * Starting PostgreSQL ... pg_ctl: could not start server Examine the log output. * Check the PostgreSQL 9.1 log for a detailed explanation of the above error. [ !! ] * ERROR: postgresql-9.1 failed to start Dec 9 04:45:11 EBox /etc/init.d/postgresql-9.1[17080]: Check the PostgreSQL 9.1 log for a detailed explanation of the above error. Dec 9 04:45:11 EBox /etc/init.d/postgresql-9.1[17056]: ERROR: postgresql-9.1 failed to start Dec 9 04:47:56 EBox /etc/init.d/postgresql-9.1[17100]: Use of the opts variable is deprecated and will be Dec 9 04:47:56 EBox /etc/init.d/postgresql-9.1[17101]: removed in the future. Dec 9 04:47:56 EBox /etc/init.d/postgresql-9.1[17102]: Please use extra_commands or extra_started_commands. Dec 9 04:47:56 EBox su[17105]: Successful su for postgres by root Dec 9 04:47:56 EBox su[17105]: + /dev/pts/0 root:postgres Dec 9 04:47:56 EBox su[17105]: pam_unix(su:session): session opened for user postgres by root(uid=0) Dec 9 04:47:56 EBox su[17105]: pam_unix(su:session): session closed for user postgres Dec 9 04:47:56 EBox su[17107]: Successful su for postgres by root Dec 9 04:47:56 EBox su[17107]: + /dev/pts/0 root:postgres Dec 9 04:47:56 EBox su[17107]: pam_unix(su:session): session opened for user postgres by root(uid=0) Dec 9 04:47:56 EBox su[17107]: pam_unix(su:session): session closed for user postgres Dec 9 04:47:56 EBox su[17109]: Successful su for postgres by root Dec 9 04:47:56 EBox su[17109]: + /dev/pts/0 root:postgres Dec 9 04:47:56 EBox su[17109]: pam_unix(su:session): session opened for user postgres by root(uid=0) Dec 9 04:47:56 EBox su[17109]: pam_unix(su:session): session closed for user postgres Dec 9 04:47:56 EBox su[17112]: Successful su for postgres by root Dec 9 04:47:56 EBox su[17112]: + /dev/pts/0 root:postgres Reproducible: Always
I have this problem too... it appears to be trying to create runtime info in /run/postgresql, it used to be in /var/run/postgresql. The former does not exist and so it fails. You can manually create it, but it's on tmpfs, it'll disappear on reboot. I'm not sure what's changed here and haven't yet had chance to dig into it. I was going to drop a mkdir into the init.d script as a short term work around.
You need to update the initscript.
I think the ebuild is still pointing to the old init scripts. Couldn't reopen this one so created bug 394171.