lilalo
changeset 130:7c65f0ac0799
merge
author | Igor Chubin <igor@chub.in> |
---|---|
date | Fri Jul 04 17:43:45 2008 +0300 (2008-07-04) |
parents | 34a84028ddea a92b17c77b57 |
children | ab7c06df9db9 |
files |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/initd-l3-backend Fri Jul 04 17:43:45 2008 +0300 1.3 @@ -0,0 +1,32 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +L3_PATH="/usr/bin/" 1.7 +L3_BACKEND="./l3-backend" 1.8 + 1.9 +case "$1" in 1.10 + start) 1.11 + cd ${L3_PATH} 1.12 + nohup ${L3_BACKEND} > /dev/null 2>&1 & 1.13 + ;; 1.14 + stop) 1.15 + l3_backend_pid=`ps waux | grep -v grep | grep 'l3.backend' | awk '{print $2;}'` 1.16 + if [ -z "$l3_backend_pid" ] 1.17 + then 1.18 + echo "l3-backend is not running" 1.19 + else 1.20 + kill ${mywi_pid} 1.21 + fi 1.22 + ;; 1.23 + restart|reload) 1.24 + $0 stop && $0 start 1.25 + ;; 1.26 + stop|reload|restart|force-reload) 1.27 + ;; 1.28 + *) 1.29 + echo "Usage: $N {start|stop|restart|force-reload}" >&2 1.30 + exit 1 1.31 + ;; 1.32 +esac 1.33 + 1.34 +exit 0 1.35 +
2.1 --- a/l3config.pm Fri Jul 04 17:40:51 2008 +0300 2.2 +++ b/l3config.pm Fri Jul 04 17:43:45 2008 +0300 2.3 @@ -91,6 +91,7 @@ 2.4 "backend_pidfile" => "/tmp/l3-backend.pid", 2.5 "backend_datafile" => "/var/lilalo/lablogs-xml/backend.xml", 2.6 "backend_datadir" => "/var/lilalo/lablogs-xml/", 2.7 + "upload_dir" => "/var/www/xguru/l3shot", 2.8 2.9 "l3-agent" => "l3-agent", 2.10 "l3-backend" => "l3-backend",