Thread: Re: Start-scripts linux

Re: Start-scripts linux

From
Bruce Momjian
Date:
Your patch has been added to the PostgreSQL unapplied patches list at:

    http://momjian.postgresql.org/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

---------------------------------------------------------------------------


Slawomir Sudnik wrote:
> Hi,
>
> this trivial patch adding option "reload".
>
> Regards,
>
> Slawek
>
> Index: linux
> ===================================================================
> RCS file: /projects/cvsroot/pgsql-server/contrib/start-scripts/linux,v
> retrieving revision 1.3
> diff -r1.3 linux
> 84a85,89
> >   reload)
> >         echo -n "Reload PostgreSQL: "
> >         su - $PGUSER -c "$DAEMON reload -D '$PGDATA' -s"
> >         echo "ok"
> >         ;;
> 87c92
> <         echo "Usage: $0 {start|stop|restart|status}" 1>&2
> ---
> >         echo "Usage: $0 {start|stop|restart|status|reload}" 1>&2
>
>
> --------------------------------------------
>  Slawomir Sudnik  e-mail:slawek@icpnet.pl
> --------------------------------------------
>
>
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Re: Start-scripts linux

From
"Darko Prenosil"
Date:
    Bruce, please see the mail that I send few days before to HACKERS
explaining that linux startup script does not work correctly with "restart"
option. Maybe this is the right time to fix it.
Yes, it is my fault that I did not make patch, but I send the correction to
"HACKERS".
Regards !

----- Original Message -----
From: "Bruce Momjian" <pgman@candle.pha.pa.us>
To: "Slawomir Sudnik" <slawek@icpnet.pl>
Cc: "PostgreSQL-patches" <pgsql-patches@postgresql.org>
Sent: Monday, June 02, 2003 3:47 PM
Subject: Re: [PATCHES] Start-scripts linux


>
> Your patch has been added to the PostgreSQL unapplied patches list at:
>
> http://momjian.postgresql.org/cgi-bin/pgpatches
>
> I will try to apply it within the next 48 hours.
>
> --------------------------------------------------------------------------
-
>
>
> Slawomir Sudnik wrote:
> > Hi,
> >
> > this trivial patch adding option "reload".
> >
> > Regards,
> >
> > Slawek
> >
> > Index: linux
> > ===================================================================
> > RCS file: /projects/cvsroot/pgsql-server/contrib/start-scripts/linux,v
> > retrieving revision 1.3
> > diff -r1.3 linux
> > 84a85,89
> > >   reload)
> > >         echo -n "Reload PostgreSQL: "
> > >         su - $PGUSER -c "$DAEMON reload -D '$PGDATA' -s"
> > >         echo "ok"
> > >         ;;
> > 87c92
> > <         echo "Usage: $0 {start|stop|restart|status}" 1>&2
> > ---
> > >         echo "Usage: $0 {start|stop|restart|status|reload}" 1>&2
> >
> >
> > --------------------------------------------
> >  Slawomir Sudnik  e-mail:slawek@icpnet.pl
> > --------------------------------------------
> >
> >
> >
>
> --
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square, Pennsylvania
19073
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>



Re: Start-scripts linux

From
Bruce Momjian
Date:
Got it and will merge the two.  Thanks.

---------------------------------------------------------------------------

Darko Prenosil wrote:
>     Bruce, please see the mail that I send few days before to HACKERS
> explaining that linux startup script does not work correctly with "restart"
> option. Maybe this is the right time to fix it.
> Yes, it is my fault that I did not make patch, but I send the correction to
> "HACKERS".
> Regards !
>
> ----- Original Message -----
> From: "Bruce Momjian" <pgman@candle.pha.pa.us>
> To: "Slawomir Sudnik" <slawek@icpnet.pl>
> Cc: "PostgreSQL-patches" <pgsql-patches@postgresql.org>
> Sent: Monday, June 02, 2003 3:47 PM
> Subject: Re: [PATCHES] Start-scripts linux
>
>
> >
> > Your patch has been added to the PostgreSQL unapplied patches list at:
> >
> > http://momjian.postgresql.org/cgi-bin/pgpatches
> >
> > I will try to apply it within the next 48 hours.
> >
> > --------------------------------------------------------------------------
> -
> >
> >
> > Slawomir Sudnik wrote:
> > > Hi,
> > >
> > > this trivial patch adding option "reload".
> > >
> > > Regards,
> > >
> > > Slawek
> > >
> > > Index: linux
> > > ===================================================================
> > > RCS file: /projects/cvsroot/pgsql-server/contrib/start-scripts/linux,v
> > > retrieving revision 1.3
> > > diff -r1.3 linux
> > > 84a85,89
> > > >   reload)
> > > >         echo -n "Reload PostgreSQL: "
> > > >         su - $PGUSER -c "$DAEMON reload -D '$PGDATA' -s"
> > > >         echo "ok"
> > > >         ;;
> > > 87c92
> > > <         echo "Usage: $0 {start|stop|restart|status}" 1>&2
> > > ---
> > > >         echo "Usage: $0 {start|stop|restart|status|reload}" 1>&2
> > >
> > >
> > > --------------------------------------------
> > >  Slawomir Sudnik  e-mail:slawek@icpnet.pl
> > > --------------------------------------------
> > >
> > >
> > >
> >
> > --
> >   Bruce Momjian                        |  http://candle.pha.pa.us
> >   pgman@candle.pha.pa.us               |  (610) 359-1001
> >   +  If your life is a hard drive,     |  13 Roberts Road
> >   +  Christ can be your backup.        |  Newtown Square, Pennsylvania
> 19073
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
> >
>
>
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073