Changes between Version 25 and Version 26 of InstallationGuidelines/Linux/Server/CherokeePostgreSQL


Ignore:
Timestamp:
02/01/12 16:23:55 (13 years ago)
Author:
Praneeth Bodduluri
Comment:

Updating the install-eden-cherokee-postgis.sh - Tested completely

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/Linux/Server/CherokeePostgreSQL

    v25 v26  
    2424apt-get update
    2525apt-get upgrade -y
     26apt-get clean
    2627
    2728# Install Admin Tools
    2829apt-get install -y unzip psmisc mlocate telnet lrzsz vim elinks-lite rcconf htop sudo
     30apt-get clean
    2931# Git
    3032apt-get -y install git-core
     33apt-get clean
    3134# Email
    3235apt-get -y install exim4-config exim4-daemon-light
     36apt-get clean
    3337
    3438#########
     
    3943
    4044# Install Python 2.6
    41 apt-get -y install python2.6 python-dev ipython
     45apt-get -y install python2.6 python-dev #ipython #ipython pulls in a lot of dependencies
     46apt-get clean
    4247apt-get -y install python-lxml python-setuptools python-shapely python-dateutil
     48apt-get clean
    4349apt-get -y install python-serial
    4450apt-get -y install python-imaging python-reportlab
    4551apt-get -y install python-xlwt python-xlrd
    46 
     52apt-get -y install build-essential
     53apt-get clean
     54
     55apt-get clean
    4756#########
    4857# Web2Py
     
    103112##########
    104113# Debian current version
    105 cat "deb http://apt.balocco.name squeeze main" >> /etc/apt/sources.list
     114echo "deb http://apt.balocco.name squeeze main" >> /etc/apt/sources.list
    106115curl http://apt.balocco.name/key.asc | apt-key add -
    107 aptitude update
    108 aptitude install cherokee
     116apt-get update
     117apt-get -y install cherokee libcherokee-mod-rrd
     118apt-get clean
    109119
    110120CHEROKEE_CONF="/etc/cherokee/cherokee.conf"
     
    156166
    157167# Carry out specific functions when asked to by the system
    158 case "$1" in
     168case "\$1" in
    159169    start)
    160170        echo "Starting uwsgi"
    161         start-stop-daemon -p $pid --start --exec $daemon -- $args
     171        start-stop-daemon -p \$pid --start --exec \$daemon -- \$args
    162172        ;;
    163173    stop)
    164174        echo "Stopping script uwsgi"
    165         start-stop-daemon --signal INT -p $pid --stop $daemon -- $args
     175        start-stop-daemon --signal INT -p \$pid --stop \$daemon -- \$args
    166176        ;;
    167177    reload)
    168178        echo "Reloading conf"
    169         kill -HUP $(cat $pid)
     179        kill -HUP \$(cat \$pid)
    170180        ;;
    171181    *)
     
    350360## Increase Shared Memory available for PostgreSQL
    351361# 512Mb
    352 #kernel.shmmax = 279134208
     362kernel.shmmax = 279134208
    353363# 1024Mb (may need more)
    354 kernel.shmmax = 552992768
     364#kernel.shmmax = 552992768
    355365kernel.shmall = 2097152
    356366EOF
    357 sysctl -w kernel.shmmax=552992768
     367sysctl -w kernel.shmmax=279134208 # For 512 MB RAM
     368#sysctl -w kernel.shmmax=552992768 # For 1024 MB RAM
    358369sysctl -w kernel.shmall=2097152
    359370
     
    524535chmod +x /usr/local/bin/stop-uwsgi
    525536
    526 
     537apt-get clean
    527538
    528539# END
     540
    529541}}}
    530542