pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedSolaris Startup
2+ messages / 2 participants
[nested] [flat]
* Solaris Startup
@ 1999-01-13 19:48 Frank Morton <fmorton@base2inc.com>
1999-01-14 15:11 ` Re: [SQL] Solaris Startup Roberto Joao Lopes Garcia <roberto@mha.com.br>
0 siblings, 1 reply; 2+ messages in thread
From: Frank Morton @ 1999-01-13 19:48 UTC (permalink / raw)
To: pgsql-sql@postgreSQL.org; pgsql-interfaces@hub.org
Does anyone have a solaris init.d startup script handy? I can't find one.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [SQL] Solaris Startup
1999-01-13 19:48 Solaris Startup Frank Morton <fmorton@base2inc.com>
@ 1999-01-14 15:11 ` Roberto Joao Lopes Garcia <roberto@mha.com.br>
0 siblings, 0 replies; 2+ messages in thread
From: Roberto Joao Lopes Garcia @ 1999-01-14 15:11 UTC (permalink / raw)
To: Frank Morton <fmorton@base2inc.com>; +Cc: pgsql-sql@postgreSQL.org
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
-------------------------------------------------------------------
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-01-14 15:11 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-01-13 19:48 Solaris Startup Frank Morton <fmorton@base2inc.com>
1999-01-14 15:11 ` Roberto Joao Lopes Garcia <roberto@mha.com.br>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox