2014-10-16 10 views
1

그것은MONIT 오류가

I 라인 4에 구문 오류가

check process python 
 
    matching "python" 
 
    if failed 
 
    exec "/usr/bin/nohup ./path to a.py 2>/dev/null &" 
 
    exec "/usr/bin/killall -9 python" 
 
    if uptime > 3 minutes then
/etc/monit.d/file.conf MONIT의 conf 파일입니다 /etc/monit.d/ 파이썬 : 4 : 오류 : 구문 오류 '간부 "'나는 누군가가이 작업을 수행 할 수있는 쉬운 방법을 제안 할 수 잘못하고 있어요 아무것도

답변

0

당신은 if failedthen을 놓친 :?은?

if failed then 
0

exec가 올바른 키워드인지 확실하지 않습니다. 다음은 과정과 MONIT을 시작하는 방법에 대한 개인적인 예입니다 나 :

check process mako matching "mako.conf" 
    start program = "/usr/bin/mako -d -c /home/pi/mako/mako.conf" 
    stop program = "/usr/bin/killall mako" 
    if 5 restarts within 5 cycles then timeout 

감사