2
# the script should be run
3
# from WEB2PY root directory
10
function web2py_start {
11
nohup ./$prog -a "<recycle>" 2>/dev/null &
12
pid=`pgrep $prog | tail -1`
15
echo "WEB2PY has been started."
18
function web2py_stop {
19
kill -15 `pgrep $prog | grep -v $$` 2>/dev/null
20
pid=`pgrep $prog | head -1`
23
echo "WEB2PY has been stopped."
39
echo "Usage: $prog [start|stop|restart]"