Re: Starting postmaster with the option -i

From: speedboy <speedboy(at)nomicrosoft(dot)org>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Starting postmaster with the option -i
Date: 2001-08-31 13:55:00
Message-ID: Pine.LNX.4.21.0108312354170.21210-100000@b.evark.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

[root(at)b] : cat /etc/rc.d/init.d/postgresql
#!/bin/sh
#[ -x /tmp/.s.PGSQL.* ] && rm -f /tmp/.s.PGSQL.*
case "$1" in
'start')
su - postgres -c 'exec /usr/local/pgsql/bin/pg_ctl -o -i -D
/home/postgres/data start >> /usr/local/pgsql/errlog 2>&1 &'
;;

'stop')
su - postgres -c 'exec /usr/local/pgsql/bin/pg_ctl -D
/home/postgres/data stop >> /usr/local/pgsql/errlog 2>&1 &'
;;

*)
echo "usage: $0 start|stop"
exit 1
;;
esac
[root(at)b]:

That help? :)

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2001-08-31 14:25:34 Re: Starting postmaster with the option -i
Previous Message Gary Stainburn 2001-08-31 13:50:46 Re: Starting postmaster with the option -i