Skip to content

Instantly share code, notes, and snippets.

@danielgustafsson
Created June 29, 2018 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielgustafsson/96cef5304beff1b9d5617347b036c6fb to your computer and use it in GitHub Desktop.
Save danielgustafsson/96cef5304beff1b9d5617347b036c6fb to your computer and use it in GitHub Desktop.
diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml
index 1c92e7df75..bf3c79b9ac 100644
--- a/doc/src/sgml/runtime.sgml
+++ b/doc/src/sgml/runtime.sgml
@@ -371,20 +371,22 @@ su postgres -c 'pg_ctl start -D /usr/local/pgsql/data -l serverlog'
<para>
On <productname>OpenBSD</productname>, add the following lines
to the file <filename>/etc/rc.local</filename>:
<indexterm><primary>OpenBSD</primary><secondary>start script</secondary></indexterm>
<programlisting>
if [ -x /usr/local/pgsql/bin/pg_ctl -a -x /usr/local/pgsql/bin/postgres ]; then
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
</programlisting>
+ Alternatively, create a service shell script in <filename>/etc/rc.d/</filename>
+ and enable it to start on system startup using <application>rcctl</application>.
</para>
</listitem>
<listitem>
<para>
On <productname>Linux</productname> systems either add
<indexterm><primary>Linux</primary><secondary>start script</secondary></indexterm>
<programlisting>
/usr/local/pgsql/bin/pg_ctl start -l logfile -D /usr/local/pgsql/data
</programlisting>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment