From owner-freebsd-questions Sat Apr 21 12: 5:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from rm-rstar.sfu.ca (rm-rstar.sfu.ca [142.58.120.21]) by hub.freebsd.org (Postfix) with ESMTP id 367F537B42C for ; Sat, 21 Apr 2001 12:05:45 -0700 (PDT) (envelope-from tmchow@sfu.ca) Received: from fraser.sfu.ca (tmchow@fraser.sfu.ca [142.58.101.25]) by rm-rstar.sfu.ca (8.10.1/8.10.1/SFU-5.0H) with ESMTP id f3LJ5Zl25930 for ; Sat, 21 Apr 2001 12:05:35 -0700 (PDT) Received: from localhost (tmchow@localhost) by fraser.sfu.ca (8.9.2/8.9.2/SFU-5.0C) with ESMTP id MAA27876 for ; Sat, 21 Apr 2001 12:05:35 -0700 (PDT) X-Authentication-Warning: fraser.sfu.ca: tmchow owned process doing -bs Date: Sat, 21 Apr 2001 12:05:34 -0700 (PDT) From: Trevin Chow To: Subject: Can't start Postgres Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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