5 printf "Starting web2py: "
6 start-stop-daemon
-S -q -m -p /run
/web2py.pid \
8 -b -x /var
/www
/web2py
/web2py.py \
9 -- --nogui -a '"<recycle>"' -i 0.0.0.0 -p 8000
10 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
13 printf "Stopping web2py: "
14 start-stop-daemon
-K -q -p /run
/web2py.pid
15 [ $?
= 0 ] && echo "OK" ||
echo "FAIL"
23 echo "Usage: $0 {start|stop|restart}"