Commit 62bb0291 authored by Marco Mariani's avatar Marco Mariani

'exec' the postgres command to control it from supervisor

parent eaaef643
...@@ -126,7 +126,7 @@ class Recipe(GenericBaseRecipe): ...@@ -126,7 +126,7 @@ class Recipe(GenericBaseRecipe):
def createRunScript(self): def createRunScript(self):
content = textwrap.dedent("""\ content = textwrap.dedent("""\
#!/bin/sh #!/bin/sh
%(bin)s/postgres \\ exec %(bin)s/postgres \\
-D %(pgdata-directory)s -D %(pgdata-directory)s
""" % self.options) """ % self.options)
name = os.path.join(self.options['services'], 'postgres-start') 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