hi sergio,
you could try to make sure the interpreter for the shell-script is existing. look at the first line of the postgresql script. there is probably something like #!/bin/bash there. maybe the entry there does not point to an existing interpreter.
hope that helps, peter