[root@lana /]# tail -n 1 /etc/crontab
0-59/1 * * * * ntop /usr/local/sbin/chk-ntop
[root@lana /]# ll -G /usr/local/sbin/*ntop
-rwxr-x---    1 ntop          130 Sep 25 05:13 /usr/local/sbin/chk-ntop
-rwxr-x---    1 ntop           96 Sep 25 04:52 /usr/local/sbin/chk.ntop
[root@lana /]# cat
/usr/local/sbin/chk-ntop
#!/bin/bash
if service ntop status | grep running > /dev/null 2>&1
        then :
        else service ntop restart > /dev/null 2>&1
exit 0
fi

[root@lana /]# cat /usr/local/sbin/chk.ntop
#!/bin/bash
if service ntop status | grep running
        then :
        else service ntop restart
exit 0
fi
[root@lana /]#


-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.

_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://lists.ntop.org/mailman/listinfo/ntop

Reply via email to