diff options
-rw-r--r-- | databases/postgresql/files/pgsql.sh.tmpl | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/databases/postgresql/files/pgsql.sh.tmpl b/databases/postgresql/files/pgsql.sh.tmpl index 8b7c4c05158..9ef0e2228f7 100644 --- a/databases/postgresql/files/pgsql.sh.tmpl +++ b/databases/postgresql/files/pgsql.sh.tmpl @@ -1,6 +1,6 @@ #!/bin/sh -# $NetBSD: pgsql.sh.tmpl,v 1.6 2000/07/14 04:44:12 jlam Exp $ +# $NetBSD: pgsql.sh.tmpl,v 1.7 2000/09/01 23:57:18 wiz Exp $ # FreeBSD Id: pgsql.sh.tmpl,v 1.3 1997/10/05 21:00:49 andreas Exp # pgsql.sh - postgresql startup file for NetBSD @@ -8,25 +8,25 @@ CMD=${1:-start} USER=@PGUSER@ -if [ -x /usr/pkg/bin/postmaster -a -x /usr/pkg/bin/pg_ctl ] +if [ -x @PREFIX@/bin/postmaster -a -x @PREFIX@/bin/pg_ctl ] then case ${CMD} in start) echo -n ' pgsql' - su -l ${USER} -c 'exec /usr/pkg/bin/pg_ctl \ - -p /usr/pkg/bin/postmaster -o "-S -o -F" start \ + su -l ${USER} -c 'exec @PREFIX@/bin/pg_ctl \ + -p @PREFIX@/bin/postmaster -o "-S -o -F" start \ > @PGHOME@/errlog' ;; stop) - su -l ${USER} -c 'exec /usr/pkg/bin/pg_ctl stop \ + su -l ${USER} -c 'exec @PREFIX@/bin/pg_ctl stop \ >> @PGHOME@/errlog' ;; restart) - su -l ${USER} -c 'exec /usr/pkg/bin/pg_ctl restart \ + su -l ${USER} -c 'exec @PREFIX@/bin/pg_ctl restart \ >> @PGHOME@/errlog' ;; status) - su -l ${USER} -c 'exec /usr/pkg/bin/pg_ctl status' + su -l ${USER} -c 'exec @PREFIX@/bin/pg_ctl status' ;; *) echo "Unexpected argument: ${CMD}" |