Menu

Installing Cosgo server

aerth
# Each demon dir is owned by a unprivileged system daemon type user.

/demon/test1/cosgo.log (write access)
/demon/test1/cosgo (executable)
/demon/test1/templates/{index.html, error.html, form.html}
/demon/test1/static/{anything}

/demon/test2/cosgo.log (write access)
/demon/test2/cosgo (executable)
/demon/test2/templates/
/demon/test2/static/

/demon/test3/cosgo.log (write access)
/demon/test3/cosgo (executable)
/demon/test3/templates/
/demon/test3/static/

Then install script/upgrade to /usr/local/bin/cosgo-upgrade and same with launch to /usr/local/bin/cosgo-launch.

Run like this:

# COSGOPORT=8080 cosgo-upgrade <demonname>

Each one edit the crontab to this

MANDRILL_API_KEY=1234
COSGO_DESTINATION=test@isupon.us
COSGOPORT=8080 # CHANGE THIS EACH ACCORDING TO NGINX PORT
#COSGO_API_KEY=contact

# uncomment this one just for manual kick start or testing
# * * * * * /usr/bin/pkill -u $USER cosgo;$HOME/cosgo -insecure -fastcgi -port $COSGOPORT

45 * * * * /usr/bin/pkill -u $USER casgo;$HOME/cosgo -insecure -fastcgi -port $COSGOPORT > /dev/null 2>&1

19 4 * * * /usr/bin/pkill -u $USER casgo;$HOME/cosgo -insecure -fastcgi -port $COSGOPORT > /dev/null 2>&1

@reboot $HOME/cosgo -insecure -fastcgi -port $COSGOPORT > /dev/null 2>&1

MongoDB Logo MongoDB