I would like to see this changed to this

+       if [ -f /etc/sysctl.conf ]; then
+ echo " You already have an /etc/sysctl.conf so I'm assuming you know what you're" + echo " doing. Please update your shared memory settings to something higher and"
+               echo "       give it another shot."
echo " If you are unsure then try adding/changing the following in your /etc/sysctl.conf"
                   echo "                  kern.sysv.shmmax=8388608"
                   echo "                  kern.sysv.shmmin=1"
                   echo "                  kern.sysv.shmmni=64"
                   echo "                  kern.sysv.shmseg=8"
                   echo "                  kern.sysv.shmall=32768"
+       else
+ echo " I am creating a default configuration in /etc/ sysctl.conf that should let" + echo " you start PostgreSQL, but it's probably best if you tune it yourself when" + echo " I'm done. You will have to reboot before it will take effect."
+               cat <<END >/etc/sysctl.conf

I had to delete my /etc/sysctl.conf to get it to write a new /etc/ sysctl.conf so I could see what settings I needed. I did change it several time but did not get it right by trial and error. Note that on my system (10.4.4) this would not work. I had to edit /etc/rc because it applied its changes after reading /etc/sysctl.conf.

Neil


On Jan 26, 2006, at 4:28 PM, Daniel Macks wrote:

+if [ "$SHMMAX" -lt "8388608" ] || [ "$SHMMNI" -lt "64" ] || [ "$SHMALL" -lt "32768" ]; then + echo "ERROR: You must set your shared memory resources higher for PostgreSQL to function."
+       if [ -f /etc/sysctl.conf ]; then
+ echo " You already have an /etc/sysctl.conf so I'm assuming you know what you're" + echo " doing. Please update your shared memory settings to something higher and"
+               echo "       give it another shot."
+       else
+ echo " I am creating a default configuration in /etc/ sysctl.conf that should let" + echo " you start PostgreSQL, but it's probably best if you tune it yourself when" + echo " I'm done. You will have to reboot before it will take effect."
+               cat <<END >/etc/sysctl.conf
+kern.sysv.shmmax=8388608
+kern.sysv.shmmin=1
+kern.sysv.shmmni=64
+kern.sysv.shmseg=8
+kern.sysv.shmall=32768
+END



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to