Commit 0dcfd3d7 authored by Marco Mariani's avatar Marco Mariani

'exec' the postgres command to control it from supervisor

parent 4dbbbfbf
......@@ -126,7 +126,7 @@ class Recipe(GenericBaseRecipe):
def createRunScript(self):
content = textwrap.dedent("""\
#!/bin/sh
%(bin)s/postgres \\
exec %(bin)s/postgres \\
-D %(pgdata-directory)s
""" % self.options)
name = os.path.join(self.options['services'], 'postgres-start')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment