Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 23 lines (21 sloc) 0.547 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#!/bin/bash
close_server(){
  PROC=$(pgrep uwsgi)
  #kill $PROC
  echo "shutting down #$PROC"
}
trap close_server INT
cd /home/ec2-user/projs/notalicous
killall uwsgi
if [ $? != 0 ]; then
echo 'Starting Server...'
else
echo 'restarting server.'
fi

SERV_PATH=../libs/uwsgi/uwsgi-0.9.6.8/uwsgi

if [ "$1" == "loud" ]
then
$SERV_PATH -L --socket /tmp/notalicous.sock --chmod-socket --module notalicous --pythonpath $(pwd)
else
$SERV_PATH -L --socket /tmp/notalicous.sock --chmod-socket --module notalicous --pythonpath $(pwd) -L &> /dev/null&
fi
Something went wrong with that request. Please try again.