lilalo

view initd-l3-backend @ 148:266dae9ce2a1

mass upload
author igor@book.xt.vpn
date Tue Dec 16 00:18:23 2008 +0200 (2008-12-16)
parents
children
line source
1 #!/bin/sh
3 L3_PATH="/usr/bin/"
4 L3_BACKEND="./l3-backend"
6 case "$1" in
7 start)
8 cd ${L3_PATH}
9 nohup ${L3_BACKEND} > /dev/null 2>&1 &
10 ;;
11 stop)
12 l3_backend_pid=`ps waux | grep -v grep | grep 'l3.backend' | awk '{print $2;}'`
13 if [ -z "$l3_backend_pid" ]
14 then
15 echo "l3-backend is not running"
16 else
17 kill ${mywi_pid}
18 fi
19 ;;
20 restart|reload)
21 $0 stop && $0 start
22 ;;
23 stop|reload|restart|force-reload)
24 ;;
25 *)
26 echo "Usage: $N {start|stop|restart|force-reload}" >&2
27 exit 1
28 ;;
29 esac
31 exit 0