aboutsummaryrefslogtreecommitdiff
path: root/contrib/linux/postgres.init
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1997-05-17 15:17:30 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1997-05-17 15:17:30 +0000
commit377cd2ea32807383e7eaa4a21f0cdb5bcc9beb06 (patch)
treef46318d48148702492c049c3ecee175e5234e967 /contrib/linux/postgres.init
parent0b055d3145af299970058d2341f91c445472cb90 (diff)
downloadpostgresql-377cd2ea32807383e7eaa4a21f0cdb5bcc9beb06.tar.gz
postgresql-377cd2ea32807383e7eaa4a21f0cdb5bcc9beb06.zip
Add comments to assist with installation.
Diffstat (limited to 'contrib/linux/postgres.init')
-rwxr-xr-xcontrib/linux/postgres.init6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/linux/postgres.init b/contrib/linux/postgres.init
index da1c06df4ca..c6243df0650 100755
--- a/contrib/linux/postgres.init
+++ b/contrib/linux/postgres.init
@@ -6,6 +6,11 @@
# based on news startup by David Myers
#
# Written for RedHat Linux but should apply to other Linux distributions.
+#
+# To be installed as /etc/rc.d/init.d/postgres.init
+# Softlink into rc5.d to bring up with multiuser and networking:
+# cd /etc/rc.d/rc5.d; ln -s ../init.d/postgres.init S98postgres
+#
# Assumptions:
# - the postgres user is named "postgres"
# - the postgres user is running csh/tcsh
@@ -32,6 +37,7 @@ case "$1" in
echo -n "Starting postgres service: "
# force full login to get path names and environment variables
# postgres runs tcsh so use proper syntax in redirection
+# change this line if the postgres superuser account is not "postgres"
# change this line if another shell syntax is necessary
# su - postgres -c 'postmaster -S' > /dev/null&
su - postgres -c 'postmaster >>&! /tmp/postmaster.log&' > /dev/null&