[Bug 799471] New: postgresql: issues with using postgresql 9.2.2.
https://bugzilla.novell.com/show_bug.cgi?id=799471 https://bugzilla.novell.com/show_bug.cgi?id=799471#c0 Summary: postgresql: issues with using postgresql 9.2.2. Classification: openSUSE Product: openSUSE Factory Version: 12.3 Beta 1 Platform: x86-64 OS/Version: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: john4deidre@clear.net.nz QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:18.0) Gecko/20100101 Firefox/18.0 in the pg_hba.conf i made the following changes: 1. with host i changed both uncommented host all all ident (to md5) ipv4 and i did the same with the ipv6 as well. in the postgres.conf i made the following changes: 1. uncommented the port=5432 i have tried to set postgresql to start at start up and it won't do so giving an error of 'postgresql: failed to start service' or something similar to this. Reproducible: Always Steps to Reproduce: 1. install postgresql with server as well 2. use the settings i have provided 3. try and run runlevel and try to start postgresql as a service and save your changes. Actual Results: does not start service Expected Results: to start the service and save so it will run each time on start up. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c1
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c2
--- Comment #2 from John Shand
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c3
--- Comment #3 from John Shand
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c4
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c
Thomas Göttlicher
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c5
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c6
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c7
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c8
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c9
Josef Reidinger
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c10
--- Comment #10 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c11
--- Comment #11 from Josef Reidinger
shouldn't we close, since, runlevel has been replaced by service manager ?
well, I don't know what is current state of services manager, so I let it decide maintainer of such module. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c12
Martin Vidner
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c13
Vladimir Moravec
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c14
Vladimir Moravec
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c15
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c16
Lukas Ocilka
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c17
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c18
Reinhard Max
I suggest to grab Fedora 20 service for postgresql (might need a few adaptation)
No, thanks. Please fix systemd to fulfil its promise. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c19
--- Comment #19 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c20
Jos Poortvliet
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c21
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c22
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c23
Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c24
--- Comment #24 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c25
--- Comment #25 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c26
--- Comment #26 from Frederic Crozat
Created an attachment (id=565779) --> (http://bugzilla.novell.com/attachment.cgi?id=565779) [details] Systemd service file for starting postgresql
Here's a proposal to fix the situation. This file is working great even under 12.3
There's the missing par for checking if the db data initdb has to be done. @fcrozat any good idea ? I was thinking about a prestart line.
Or like apache2 make a wrapper script which do the precheck & initdb if needed ?
My advise would be to use a single ExecStartPre line if it is not too long but if the check is a bit complex and requires shell code, better to move it to a separate script file and call it in ExecStartPre. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c27
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c28
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c29
Reinhard Max
There won't be any change on systemd side, as explained in comments 17 and 21.
Well, especially comment 17 is exactly not explaininig anything. It only states that something "should be avoided at all costs", but fails to tell why. As PostgreSQL's use of su in the init script was there for more than 10 years without any problems and/or complaints, I want some stronger prove of why it all of a sudden is not a good idea anymore, especially as sysv init script compatibility is stated so prominently on the systemd home page. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c30
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c31
Reinhard Max
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c32
--- Comment #32 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c33
Scott Easterday
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c34
--- Comment #34 from Bruno Friedmann
https://bugzilla.novell.com/show_bug.cgi?id=799471
https://bugzilla.novell.com/show_bug.cgi?id=799471#c35
--- Comment #35 from Scott Easterday
participants (1)
-
bugzilla_noreply@novell.com