package/dhcp/S80dhcp-server: allow empty INTERFACES
[buildroot-gz.git] / package / python-web2py / S51web2py
blob8d229e16cfd770429daccc593799cb92b4e6e568
1 #!/bin/sh
3 case "$1" in
4 start)
5 printf "Starting web2py: "
6 start-stop-daemon -S -q -m -p /run/web2py.pid \
7 -c www-data \
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"
12 stop)
13 printf "Stopping web2py: "
14 start-stop-daemon -K -q -p /run/web2py.pid
15 [ $? = 0 ] && echo "OK" || echo "FAIL"
17 restart)
18 "$0" stop
19 sleep 1
20 "$0" start
23 echo "Usage: $0 {start|stop|restart}"
25 esac