https://bugzilla.novell.com/show_bug.cgi?id=799471 https://bugzilla.novell.com/show_bug.cgi?id=799471#c26 --- Comment #26 from Frederic Crozat <fcrozat@suse.com> 2013-11-04 10:51:15 UTC --- (In reply to comment #24)
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.