>> > The postgresql-?.?.?/contrib/linux/postgres.init is meant to start your
>> > postmaster at boot time and stop it at halt/reboot. Excelent.
>> > But it is made for postgres account running tcsh. I know nothing about
tchs
>> > and my postgres account defaults to bash. So (thanks to Steve
"Stevers!"
>> > Coile) I changed it to bash:
>
>OK, but _I_ don't run bash. So someone else is now maintaining this
>file? Why didn't we keep both forms in the file, with one commented out?
>What are we trying to accomplish here??

Let me explain myself.

The point is I changed script because IT DIDN'T STOP THE POSTMATER.

The original 'touch' line was commented out so there was no way (by means of
sysV) the script would stop gracefully the postmaster. (I don't know what
damage would occur from improper shut down, but I dislike taking chances.)

And even more, just uncommenting the 'touch' line wouldn't make it right
since the sysV expects the 'touched file' to be named after the halt/reboot
script symlink (this also implies keeping the same name on both symlinks).
In the original script it was ${POSTMASTER} which expanded to 'postmaster'
while the sysV (X) editor symlinked it to [KS]??postgres.

About bash, it's the usual shell for regular users. I guess the start/stop
script was meant for users who don't know/cannot write their own.


Claudiu Balciza




Tue, 28 Apr 1998 08:46:34 +0300
"Claudiu Balciza" <cbalciza@mail.geocities.com>
Re: [HACKERS] postgres init script things solved
> >> > postmaster at boot time and stop it at halt/reboot. Excelent.
> >> > But it is made for postgres account running tcsh. I know nothing about
> tchs
> >> > and my postgres account defaults to bash. So (thanks to Steve
> "Stevers!"
> >> > Coile) I changed it to bash:
...
> >OK, but _I_ don't run bash. So someone else is now maintaining this
> >file? Why didn't we keep both forms in the file, with one commented out?
> >What are we trying to accomplish here??
... 
> About bash, it's the usual shell for regular users. I guess the start/stop
> script was meant for users who don't know/cannot write their own.

Perhaps we should write scripts for just plain old 'sh'. This is available
everywhere (sort of even on SCO).

If not that, bash might be a better choice than tcsh as it is perhaps more
common (we even run it on all our Solaris machines where I work).

-dg

David Gould            dg@illustra.com           510.628.3783 or 510.305.9468 
Informix Software  (No, really)         300 Lakeside Drive  Oakland, CA 94612
"(Windows NT) version 5.0 will build on a proven system architecture
 and incorporate tens of thousands of bug fixes from version 4.0."
                 -- <http://www.microsoft.com/y2k.asp?A=7&B=5>

Mon, 27 Apr 1998 23:39:06 -0700 (PDT)
dg@illustra.com (David Gould)
Re: [HACKERS] postgres init script things solved