lilalo

annotate initd-l3-backend @ 138:93e08c4b54ed

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