Subversion Repositories eFlore/Applications.cel

Rev

Rev 2416 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2416 Rev 2417
Line 19... Line 19...
19
#
19
#
20
case "$1" in
20
case "$1" in
Line 21... Line 21...
21
 
21
 
Line 22... Line 22...
22
start)
22
start)
23
 
23
 
Line 24... Line 24...
24
echo "Demarrage de codeinseecommune :"
24
echo "Demarrage de code_insee_commune :"
Line 25... Line 25...
25
nohup /usr/local/sbin/codeinseecommune.sh 1>/dev/null 2>/dev/null &
25
nohup /usr/local/sbin/code_insee_commune.sh 1>/dev/null 2>/dev/null &
Line 26... Line 26...
26
 
26
 
27
;;
27
;;
28
 
28
 
Line 29... Line 29...
29
stop)
29
stop)
Line 30... Line 30...
30
 
30
 
Line 31... Line 31...
31
echo "Arret de codeinseecommune"
31
echo "Arret de code_insee_commune"
32
PID=`ps -eaf | grep codeinseecommune | grep -v grep | tr -s ' ' | cut -d' ' -f2 | head -n1`
32
PID=`ps -eaf | grep code_insee_commune | grep -v grep | tr -s ' ' | cut -d' ' -f2 | head -n1`
33
kill -9 ${PID}
33
kill -9 ${PID}
Line 34... Line 34...
34
 
34