lilalo
view initd-l3-backend @ 128:56cd2abd3e8a
l3-upload dir is read from config file
author | igor@chub.in |
---|---|
date | Fri Jul 04 17:49:17 2008 +0300 (2008-07-04) |
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