Обсуждение: Linux startup script

Поиск
Список
Период
Сортировка

Linux startup script

От
Darko Prenosil
Дата:
I have noticed that after "/etc/init.d/postgresql restart", postmaster is no 
longer writes to "serverlog". (RedHat 9).
Here is fixed "restart" section.

restart)echo -n "Restarting PostgreSQL: "su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast -l $PGLOG" echo
"ok";;

In version 7.3.3 is missing "-l $PGLOG" at the end of "$DAEMON restart" 
command.
Regards !



Re: Linux startup script

От
Bruce Momjian
Дата:
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.

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


Darko Prenosil wrote:
>     I have noticed that after "/etc/init.d/postgresql restart", postmaster is no 
> longer writes to "serverlog". (RedHat 9).
> Here is fixed "restart" section.
> 
> restart)
>     echo -n "Restarting PostgreSQL: "
>     su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast -l $PGLOG" 
>     echo "ok"
>     ;;
> 
> In version 7.3.3 is missing "-l $PGLOG" at the end of "$DAEMON restart" 
> command.
> 
>     Regards !
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 

--  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,
Pennsylvania19073
 


Re: Linux startup script

От
Darko Prenosil
Дата:
On Thursday 05 June 2003 16:08, Andrew Overholt wrote:
> Darko Prenosil once said:
> > I have noticed that after "/etc/init.d/postgresql restart", postmaster is
> > no longer writes to "serverlog". (RedHat 9).
> > Here is fixed "restart" section.
> >
> > restart)
> >     echo -n "Restarting PostgreSQL: "
> >     su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast -l $PGLOG"
> >     echo "ok"
> >     ;;
>
> What version of the RPMs are you running (and are they PGDG or RH)?  The
> version that I have has the following restart section:
>

PostgreSQL 7.3.3 compilled from source.

>
> restart(){
>     stop
>     start
> }
>
> I've checked the PGDG RHL9 ones and see the same thing...
>
> Andrew

I was talking about startup script in contrib directory of postgresql source, 
not RH startup script. I mentioned RedHat only because  that directory 
contains startup scripts for platforms other than linux, and to avoid any 
misunderstanding. So this is sure not Yours (RedHat) fault.

Bruce Momijan already applied patch to current CVS, so this if fixed !
Regards !


Re: Linux startup script

От
Andrew Overholt
Дата:
Darko Prenosil once said:
> I have noticed that after "/etc/init.d/postgresql restart", postmaster is no 
> longer writes to "serverlog". (RedHat 9).
> Here is fixed "restart" section.
> 
> restart)
>     echo -n "Restarting PostgreSQL: "
>     su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast -l $PGLOG" 
>     echo "ok"
>     ;;

What version of the RPMs are you running (and are they PGDG or RH)?  The
version that I have has the following restart section:


restart(){   stop   start
}

I've checked the PGDG RHL9 ones and see the same thing...

Andrew


Re: Linux startup script

От
Bruce Momjian
Дата:
Patch applied.  Thanks.

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


Darko Prenosil wrote:
>     I have noticed that after "/etc/init.d/postgresql restart", postmaster is no 
> longer writes to "serverlog". (RedHat 9).
> Here is fixed "restart" section.
> 
> restart)
>     echo -n "Restarting PostgreSQL: "
>     su - $PGUSER -c "$DAEMON restart -D '$PGDATA' -s -m fast -l $PGLOG" 
>     echo "ok"
>     ;;
> 
> In version 7.3.3 is missing "-l $PGLOG" at the end of "$DAEMON restart" 
> command.
> 
>     Regards !
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 

--  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,
Pennsylvania19073