diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 3645d4c5a9..ef1cdfd414 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -280,10 +280,10 @@ pg_ctl start -l logfile rc.d directories. Whatever you do, the server must be run by the PostgreSQL user account and not by root or any other user. Therefore you - probably should form your commands using su -c '...' - postgres. For example: + probably should form your commands using + su postgres -c '...'. For example: -su -c 'pg_ctl start -D /usr/local/pgsql/data -l serverlog' postgres +su postgres -c 'pg_ctl start -D /usr/local/pgsql/data -l serverlog' @@ -309,7 +309,7 @@ su -c 'pg_ctl start -D /usr/local/pgsql/data -l serverlog' postgres OpenBSDstart script if [ -x /usr/local/pgsql/bin/pg_ctl -a -x /usr/local/pgsql/bin/postgres ]; then - su - -c '/usr/local/pgsql/bin/pg_ctl start -l /var/postgresql/log -s' postgres + su -l postgres -c '/usr/local/pgsql/bin/pg_ctl start -s -l /var/postgresql/log -D /usr/local/pgsql/data' echo -n ' postgresql' fi