1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

make startup script work (start/stop)

Obtained from:	Palle Girgensohn <girgen@partitur.se>
This commit is contained in:
Andreas Klemm 2000-05-25 09:35:25 +00:00
parent 7607e6564a
commit 989d7f9fd3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28745
42 changed files with 364 additions and 280 deletions

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac

View File

@ -182,6 +182,9 @@ post-install:
@ ${ECHO_MSG} "Putting postgresql.jar in"
@ ${ECHO_MSG} "${PREFIX}/share/java/classes/postgresql.jar"
@ ${ECHO_MSG} "Add this to your CLASSPATH!"
@ ${ECHO_MSG} "ALSO NOTE: path inside jar file modified from 6.5.x:"
@ ${ECHO_MSG} " 'postgresql.*' -> 'org.postgresql.*'!"
@ ${ECHO_MSG} "You will need to modify you applications' props files."
@ ${ECHO_MSG} "---------------------------------------------------------"
@ ${CAT} ${PKGDIR}/PLIST.jdbc >> ${TMPPLIST}
.if !defined(NOPORTDOCS)

View File

@ -0,0 +1,5 @@
--- bin/pg_ctl/postmaster.opts.default.sample~ Mon Apr 17 05:45:17 2000
+++ bin/pg_ctl/postmaster.opts.default.sample Tue May 23 02:46:30 2000
@@ -1 +1 @@
-
+-i -o "-F"

View File

@ -1,36 +1,34 @@
#!/bin/sh
# $FreeBSD$
# pgsql.sh - postgresql startup file for FreeBSD and possibly *BSD (untested)
# Changes:
# - renamed startup script to be in sync with INSTALL file
# - merged ldconfig start sequence from former postgrsql.sh script (andreas)
# - modified the postmaster startup sequence as suggested in the
# INSTALL file which was given as example for FreeBSD 2.2 (andreas)
# - removed the commandline option
# -D!!PREFIX!!/pgsql/data \
# because the postmaster process, which starts up under the
# environment of the pgsql user, sets this with the PGDATA
# environment variable in !!PREFIX!!/pgsql/.profile
# - added (ugly) support for shutting down (girgen)
# - moved 2>&1 to end of line, so it'll actually work [if -S is removed] (girgen)
#
# For postmaster startup options, edit $PGDATA/postmaster.opts.default
# Preinstalled options are -i -o "-F"
case $1 in
start)
[ -d !!PREFIX!!/pgsql/lib ] && /sbin/ldconfig -m !!PREFIX!!/pgsql/lib
[ -x !!PREFIX!!/pgsql/bin/postmaster ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/postmaster -i -S -o -F \
> !!PREFIX!!/pgsql/errlog 2>&1'
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c \
'exec !!PREFIX!!/pgsql/bin/pg_ctl -w start > !!PREFIX!!/pgsql/errlog 2>&1'
echo -n ' pgsql'
}
;;
stop)
/usr/bin/killall postgres
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl -w -m fast stop'
}
;;
status)
[ -x !!PREFIX!!/pgsql/bin/pg_ctl ] && {
su -l pgsql -c 'exec !!PREFIX!!/pgsql/bin/pg_ctl status'
}
;;
*)
echo "usage: `basename $0` {start|stop}" >&2
echo "usage: `basename $0` {start|stop|status}" >&2
exit 64
;;
esac