Tue Sep 27 07:24:54 2011 UTC ()
Fix for PR#45403


(adam)
diff -r1.1.1.1 -r1.2 pkgsrc/databases/postgresql91-server/files/pgsql.sh

cvs diff -r1.1.1.1 -r1.2 pkgsrc/databases/postgresql91-server/files/Attic/pgsql.sh (expand / switch to unified diff)

--- pkgsrc/databases/postgresql91-server/files/Attic/pgsql.sh 2011/09/15 08:28:29 1.1.1.1
+++ pkgsrc/databases/postgresql91-server/files/Attic/pgsql.sh 2011/09/27 07:24:54 1.2
@@ -1,44 +1,44 @@ @@ -1,44 +1,44 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: pgsql.sh,v 1.1.1.1 2011/09/15 08:28:29 adam Exp $ 3# $NetBSD: pgsql.sh,v 1.2 2011/09/27 07:24:54 adam Exp $
4# 4#
5# PostgreSQL database rc.d control script 5# PostgreSQL database rc.d control script
6# 6#
7# PROVIDE: pgsql 7# PROVIDE: pgsql
8# REQUIRE: DAEMON 8# REQUIRE: DAEMON
9# KEYWORD: shutdown 9# KEYWORD: shutdown
10# 10#
11# You will need to set some variables in /etc/rc.conf to start PostgreSQL: 11# You will need to set some variables in /etc/rc.conf to start PostgreSQL:
12# 12#
13# pgsql=YES 13# pgsql=YES
14# 14#
15# Optionally, "pgsql_flags" contains options for the PostgreSQL postmaster, e.g. 15# Optionally, "pgsql_flags" contains options for the PostgreSQL postmaster, e.g.
16# pgsql_flags="-i" # allows TCP/IP connections 16# pgsql_flags="-i" # allows TCP/IP connections
17# pgsql_flags="-i -l" # enables SSL connections 17# pgsql_flags="-i -l" # enables SSL connections
18# pgsql_home="/path/to/home" # path to pgsql database directory 18# pgsql_home="/path/to/home" # path to pgsql database directory
19# See postmaster(1) for possible options. 19# See postmaster(1) for possible options.
20 20
21if [ -f /etc/rc.subr ]; then 21if [ -f /etc/rc.subr ]; then
22 . /etc/rc.subr 22 . /etc/rc.subr
23fi 23fi
24 24
25name="pgsql" 25name="pgsql"
26rcvar=${name} 26rcvar=${name}
27command="@PREFIX@/bin/pg_ctl" 27command="@PREFIX@/bin/pg_ctl"
28procname="@PREFIX@/bin/postgres" 28procname="@PREFIX@/bin/postgres"
29pgsql_user="@PGUSER@" 29: ${pgsql_user:=@PGUSER@}
30pgsql_group="@PGGROUP@" 30: ${pgsql_group:=@PGGROUP@}
31pgsql_home="@PGHOME@" 31: ${pgsql_home:=@PGHOME@}
32 32
33extra_commands="initdb reload" 33extra_commands="initdb reload"
34initdb_cmd="pgsql_initdb" 34initdb_cmd="pgsql_initdb"
35start_precmd="pgsql_precmd" 35start_precmd="pgsql_precmd"
36start_cmd="pgsql_start" 36start_cmd="pgsql_start"
37restart_precmd="pgsql_precmd" 37restart_precmd="pgsql_precmd"
38restart_cmd="pgsql_restart" 38restart_cmd="pgsql_restart"
39stop_cmd="pgsql_stop" 39stop_cmd="pgsql_stop"
40reload_cmd="pgsql_reload" 40reload_cmd="pgsql_reload"
41 41
42if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then 42if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
43 load_rc_config $name 43 load_rc_config $name
44elif [ -f /etc/rc.conf ]; then 44elif [ -f /etc/rc.conf ]; then