From: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
---|---|
To: | Shawn Thomas <thomassd(at)u(dot)washington(dot)edu> |
Cc: | Magnus Hagander <magnus(at)hagander(dot)net>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Can't restart Postgres |
Date: | 2017-02-15 14:35:32 |
Message-ID: | 3c34e840-ab61-3939-1b4e-e78614b28190@aklaver.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 02/14/2017 08:47 PM, Shawn Thomas wrote:
> No it doesn’t matter if run with sudo, postgres or even root. Debian
> actually wraps the command and executes some some initial scripts with
> different privileges but ends up making sure that Postgres ends up
> running under the postgres user. I get the same output if run with sudo:
>
> sudo systemctl status postgresql(at)9(dot)4-main(dot)service
> <mailto:postgresql(at)9(dot)4-main(dot)service> -l
> Error: could not exec start -D /var/lib/postgresql/9.4/main -l
> /var/log/postgresql/postgresql-9.4-main.log -s -o -c
> config_file="/etc/postgresql/9.4/main/postgresql.conf”
>
So you are talking about:
/etc/init.d/postgresql
which then calls:
/usr/share/postgresql-common/init.d-functions
Or is there another setup on your system?
Any relevant information in the system logs?
> Thanks, though.
>
> -Shawn
--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2017-02-15 14:44:09 | Re: Missing feature - how to differentiate insert/update in plpgsql function? |
Previous Message | hubert depesz lubaczewski | 2017-02-15 14:27:45 | Re: Missing feature - how to differentiate insert/update in plpgsql function? |