Received: from hipernet.com.br (nautilus.hipernet.com.br [200.246.90.107]) by hub.org (8.9.1/8.9.1) with ESMTP id LAA19539 for ; Thu, 14 Jan 1999 11:13:11 -0500 (EST) (envelope-from roberto@mha.com.br) Received: from pc35.mha.com.br (dialsp4p2.hipernet.com.br [200.246.90.175]) by hipernet.com.br (8.8.8+Sun/8.8.8) with SMTP id OAA18951; Thu, 14 Jan 1999 14:11:12 -0200 (EDT) Message-Id: <3.0.5.32.19990114131114.008ce870@pop.hipernet.com.br> X-Sender: roberto@pop.hipernet.com.br X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32) Date: Thu, 14 Jan 1999 13:11:14 -0200 To: "Frank Morton" From: Roberto Joao Lopes Garcia Subject: Re: [SQL] Solaris Startup Cc: pgsql-sql@postgreSQL.org In-Reply-To: <033701be3f2d$ae143270$8355e5ce@base2inc.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id LAA19540 At 14:48 13/01/99 -0500, you wrote: >Does anyone have a solaris init.d startup script handy? I can't find one. > > Hi I start Postmaster in my solaris 2.5 from the /etc/rc2.d at boot time. I just put the file bellow inside this directory. I hope it help Roberto #!/bin/sh # # S81postgres.scr if [ ! -d /usr/bin ] then # /usr not mounted exit fi killproc() { # kill the named process(es) pid=`/usr/bin/ps -e | /usr/bin/grep $1 | /usr/bin/sed -e 's/^ *//' -e 's/ .*//'` [ "$pid" != "" ] && kill $pid } # # Start/stop postmaster # case "$1" in 'start') if [ -x /usr/local/pgsql/bin/postmaster ] then echo Iniciando PostgreSQL ... su postgres -c "/usr/local/pgsql/bin/postmaster -i -S -D /usr/local/pgsql/data > /export/home/usr/postgres/server.log 2>&1 " > /dev/console 2>&1 fi ;; 'stop') killproc postgres ;; *) echo "Usage: /etc/rc2.d/S82postgres.scr { start | stop }" ;; esac ------------------------------------------------------------------ Eng. Roberto Joćo Lopes Garcia E-mail: roberto@mha.com.br F. 55 11 848 9906 FAX 55 11 848 9955 MHA Engenharia Ltda E-mail: mha@mha.com.br WWW: http://www.mha.com.br Av Maria Coelho Aguiar, 215 Bloco D 2 Andar Centro Empresarial de Sao Paulo Sao Paulo - BRASIL - 05805 000 -------------------------------------------------------------------