Date: Sat, 21 Apr 2001 12:05:34 -0700 (PDT) From: Trevin Chow <tmchow@sfu.ca> To: <questions@freebsd.org> Subject: Can't start Postgres Message-ID: <Pine.GSO.4.30.0104211203590.27551-100000@fraser.sfu.ca>
next in thread | raw e-mail | index | archive | help
Hi, I just installed the Postgresql 7.1 port and I can't start it up using the script in /usr/local/etc/rc.d/. Whenver I issue the start command, I'm getting this message: ----- mesg: /dev/ttyp1: Operation not permitted function: not found ls: not found function: not found Syntax error: "}" unexpected ----- The actual startup script is /usr/local/etc/rc.d/pgsql.sh: #!/bin/sh # $FreeBSD: ports/databases/postgresql7/files/pgsql.sh.tmpl,v 1.10 2001/04/21 11:34:33 vanilla Exp $ # # For postmaster startup options, edit $PGDATA/postgresql.conf PGBIN=/usr/local/bin case $1 in start) [ -d /usr/local/lib ] && /sbin/ldconfig -m /usr/local/lib [ -x ${PGBIN}/pg_ctl ] && { su -l pgsql -c \ 'exec /usr/local/bin/pg_ctl start -w -l ~pgsql/errlog' echo -n ' pgsql' } ;; stop) [ -x ${PGBIN}/pg_ctl ] && { exec su -l pgsql -c 'exec /usr/local/bin/pg_ctl stop -m fast' } ;; status) [ -x ${PGBIN}/pg_ctl ] && { exec su -l pgsql -c 'exec /usr/local/bin/pg_ctl status' } ;; *) echo "usage: `basename $0` {start|stop|status}" >&2 exit 64 ;; esac To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.30.0104211203590.27551-100000>