]>
git.ipfire.org Git - people/shoehn/ipfire.org.git/blob - webapp.init
3 HOMEDIR
=$
(dirname $
(readlink
$0))
4 LOGFILE
=/var
/log
/webapp
/error.log
8 if ps ax |
grep -v grep |
grep webapp.py
> /dev
/null
10 echo "webapp is allready running..."
12 echo "Starting webapp..."
13 cd ${HOMEDIR} && .
/webapp.py
>>${LOGFILE} 2>&1 &
18 if ps ax |
grep -v grep |
grep webapp.py
> /dev
/null
20 echo "Stopping webapp..."
21 killall webapp.py
&> /dev
/null
23 echo "webapp is not running..."
34 if ps ax |
grep -v grep |
grep webapp.py
> /dev
/null
37 # echo "webapp is running..."
39 echo "webapp is not running!"
45 echo "usage: webapp [ start | stop | restart | check ]"