On Fri, 20 Oct 2006, David B. wrote:
trying to get postgres to start up at boot.  found this at postgresql's site

[snip]

su - -c '/usr/local/bin/pg_ctl -D /WEBSITE/DATADIRECTORY start' postgres

[snip]

at boot the error thrown is "No such login class: /usr/local/bin/pg_ctl -D /WEBSITE/DATADIRECTORY start"

From su(1):

     -c login-class
        Specify a login class.  You may only override the default class
        if you're already root.

Try removing the part that executes su because boot scripts are run by
root anyway.

--
Antti Harri

Reply via email to