Re: Re: [PATCHES] A Sparc/Linux patch (for 7.1), and a Linux rc.d/init.d script....

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Ryan Kirkpatrick <ryan(at)calibration(dot)com>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [PATCHES] A Sparc/Linux patch (for 7.1), and a Linux rc.d/init.d script....
Date: 2001-02-06 17:45:27
Message-ID: 200102061745.MAA01445@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

> On Sun, 4 Feb 2001, Peter Eisentraut wrote:
>
> > Ryan Kirkpatrick writes:
> >
> > > postgresql -> This is a Linux distribution independent (or so I
> > > hope) init.d/rc.d script that makes use of pg_ctl. There is currently a
> > > few in ./contrib/linux of the pgsql source tree, but they are RedHat
> > > specific. This one is simple and self contained. Might be worth adding to
> > > the other scripts.
> >
> > I don't see how this can be more independent if it uses
> >
> > DAEMON=/home/postgres/bin/pg_ctl
>
> Ooops.... That is my mistake... Should have been
> /usr/local/pgsql/bin/pg_ctl. I have /usr/local/pgsql/ symlinked to /home
> (where there is more, faster disk space). I can submit a patch, or can
> some one just fix it?

Change made.

> > LOG="/usr/local/pgsql/server.log"
>
> What is wrong with that? There really is no standard on where to
> put the log file, so it is either here or /var/log.
>
> > su - postgres sh -c "$DAEMON stop >& /dev/null"
>
> Hmm... What is wrong here, besides the '>&'? The '>&' can be
> replaced with '2>&1 >' if that is more standard.
>

Change made.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2001-02-06 17:45:58 Re: [SQL] PL/PGSQL function with parameters
Previous Message Karel Zak 2001-02-06 17:31:02 Re: Using Threads

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2001-02-06 18:05:06 Re: pgcrypto: wrong usage of PG_FREE_IF_COPY
Previous Message Marko Kreen 2001-02-06 16:52:25 pgcrypto: wrong usage of PG_FREE_IF_COPY