lilalo

view initd-l3-backend @ 142:e939c147dcdd

Добавлен l3pre.php --- mediawiki extension, предназначенный для вставки на wiki фрагментов журнала
author igor@chub.in
date Tue Jul 22 00:16:20 2008 +0300 (2008-07-22)
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