Re: looks like apple fixed /etc/rc

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Jim C(dot) Nasby" <decibel(at)decibel(dot)org>
Cc: Theodore Petrosky <tedpet5(at)yahoo(dot)com>, pgsql -bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: looks like apple fixed /etc/rc
Date: 2005-04-30 03:57:54
Message-ID: 200504300357.j3U3vsQ29423@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Are they still running on the default PostgreSQL port number for their
remote administration tool?

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

Jim C. Nasby wrote:
> That's interesting. On my powerbook, I had to comment out the sysctl -w
> kern.sysv.shmmax line in /etc/rc. It appears that you can shrink shmmax
> but not expand it. This meant that it would properly set it based on
> /etc/syscttl.conf, but that (large) setting would then be over-written
> by the subsiquent sysctl -w.
>
> On Fri, Apr 29, 2005 at 09:39:55AM -0700, Theodore Petrosky wrote:
> > I just updated to 10.3.9 and of course the /etc/rc was
> > dinged. I opened the /etc/rc and found a change..
> >
> > # System tuning
> > sysctl -w kern.maxvnodes=$(echo $(sysctl -n
> > hw.physmem) '33554432 / 512 * 1024 +p'|dc)
> > if [ -f /etc/sysctl-macosxserver.conf ]; then
> > awk '{ if (!index($1, "#") && index($1, "="))
> > print $1 }' < /etc/sysctl-macosxserver.conf | while
> > read
> > do
> > sysctl -w ${REPLY}
> > done
> > fi
> >
> > if [ -f /etc/sysctl.conf ]; then
> > awk '{ if (!index($1, "#") && index($1, "="))
> > print $1 }' < /etc/sysctl.conf | while read
> > do
> > sysctl -w ${REPLY}
> > done
> > fi
> >
> > sysctl -w kern.sysv.shmmax=4194304
> > sysctl -w kern.sysv.shmmin=1
> > sysctl -w kern.sysv.shmmni=32
> > sysctl -w kern.sysv.shmseg=8
> > sysctl -w kern.sysv.shmall=1024
> >
> > It appears that apple is checking for etc/sysctl.conf
> > before setting the sysctl values. so I created a
> > etc/sysctl.conf with this inside:
> >
> > kern.sysv.shmmax=33554432
> > kern.sysv.shmmin=1
> > kern.sysv.shmmni=32
> > kern.sysv.shmseg=8
> > kern.sysv.shmall=65536
> >
> > I did not alter /etc/rc. postgresql starts up just
> > fine. I hope this implys that the issue is resolved..
> >
> > Ted
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
> >
>
> --
> Jim C. Nasby, Database Consultant decibel(at)decibel(dot)org
> Give your computer some brain candy! www.distributed.net Team #1828
>
> Windows: "Where do you want to go today?"
> Linux: "Where do you want to go tomorrow?"
> FreeBSD: "Are you guys coming, or what?"
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Qingqing Zhou 2005-04-30 05:42:46 Re: How to intall postgresql-docs-7.4.6 on win2000?
Previous Message Alvaro Herrera 2005-04-30 01:33:31 Re: BUG #1639: Problema re-instalacion