summaryrefslogtreecommitdiff
path: root/japanese/postgresql-tcltk/files/pgsql.sh.tmpl
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-10-19 13:40:37 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-10-19 13:40:37 +0000
commit73760e4490558347840d3662ed2430ffb797be45 (patch)
tree5a72cd3ea87457c845e6d3df4585fa028ac5fe29 /japanese/postgresql-tcltk/files/pgsql.sh.tmpl
parentFreeBSD has still no getpwuid_r() (diff)
Update to slave of databases/postgresql7 after repocopy from
japanese/postgresql7. PR: ports/43433 Submitted by: Saito Tomokatsu <saito@a2z.co.jp>
Notes
Notes: svn path=/head/; revision=68340
Diffstat (limited to 'japanese/postgresql-tcltk/files/pgsql.sh.tmpl')
-rw-r--r--japanese/postgresql-tcltk/files/pgsql.sh.tmpl36
1 files changed, 0 insertions, 36 deletions
diff --git a/japanese/postgresql-tcltk/files/pgsql.sh.tmpl b/japanese/postgresql-tcltk/files/pgsql.sh.tmpl
deleted file mode 100644
index cd78771219ed..000000000000
--- a/japanese/postgresql-tcltk/files/pgsql.sh.tmpl
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-# $FreeBSD$
-#
-# For postmaster startup options, edit $PGDATA/postgresql.conf
-
-PGBIN=%%PREFIX%%/%%PG_PREFIX%%bin
-
-case $1 in
-start)
- [ -d %%PREFIX%%/%%PG_PREFIX%%lib ] && /sbin/ldconfig -m %%PREFIX%%/%%PG_PREFIX%%lib
- [ -x ${PGBIN}/pg_ctl ] && {
- su -l pgsql -c \
- '[ -d ${PGDATA} ] && exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl start -s -w -l ~pgsql/errlog'
- echo -n ' pgsql'
- }
- ;;
-
-stop)
- [ -x ${PGBIN}/pg_ctl ] && {
- su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl stop -s -m fast'
- echo -n ' pgsql'
- }
- ;;
-
-status)
- [ -x ${PGBIN}/pg_ctl ] && {
- exec su -l pgsql -c 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl status'
- }
- ;;
-
-*)
- echo "usage: `basename $0` {start|stop|status}" >&2
- exit 64
- ;;
-esac