looks like apple fixed /etc/rc

Поиск
Список
Период
Сортировка
От Theodore Petrosky
Тема looks like apple fixed /etc/rc
Дата
Msg-id 20050429163955.63618.qmail@web41013.mail.yahoo.com
обсуждение исходный текст
Ответы Re: looks like apple fixed /etc/rc  ("Jim C. Nasby" <decibel@decibel.org>)
Список pgsql-bugs
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

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Mike G."
Дата:
Сообщение: Re: BUG #1638: ODBC driver problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Win1250 database under linux