From: | Darren Ferguson <darren(at)crystalballinc(dot)com> |
---|---|
To: | Terence Leung <tcmleung(at)yahoo(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: how to auto start "postmaster" |
Date: | 2002-06-12 13:19:00 |
Message-ID: | Pine.LNX.4.10.10206120918180.18534-100000@thread.crystalballinc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Script fo that was sent yesterday
what you do is
su postgres -c "then the command goes in here"
HTH
Darren Ferguson
On Wed, 12 Jun 2002, Terence Leung wrote:
> Dear sir,
> I am using Redhat Linux 6.2 and postgresql 7.0.
> I want to auto-run "postmaster -i &" after booting
> the Linux. I write a shell script in /etc/rc.d/rc4.d
> so that it would be run after start up.
> "----------------
> #!/bin/sh
> postmaster -i &
> ----------------"
> However, I know postmaster cannot be run by "root"
> but "postgres".
> What can I do, how to modify the code so that the
> script can be run by postgres?
> Please help!!!
> Thank you.
>
>
>
> =====
> Terence Leung,
> Mobile: 9273 9176
> email: tcmleung(at)yahoo(dot)com,
> Homepage:http://tcmleung.uhome.net
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Beutin | 2002-06-12 13:26:15 | Re: how to auto start "postmaster"? |
Previous Message | Marcel Meulemans | 2002-06-12 10:25:39 | dynamic querys |