Linux startup script

Started by Darko Prenosilover 22 years ago5 messages
#1Darko Prenosil
darko.prenosil@finteh.hr

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 !

#2Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Darko Prenosil (#1)
Re: Linux startup script

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, Pennsylvania 19073
#3Andrew Overholt
overholt@redhat.com
In reply to: Darko Prenosil (#1)
Re: Linux startup script

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

#4Darko Prenosil
darko.prenosil@finteh.hr
In reply to: Andrew Overholt (#3)
Re: Linux startup script

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 !

#5Bruce Momjian
pgman@candle.pha.pa.us
In reply to: Darko Prenosil (#1)
Re: Linux startup script

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, Pennsylvania 19073