I have a tor-node under my vds on FreeBSD 8.1-STABLE and I have a record
"tor_enable="YES" in my /etc/rc.conf.
But I have periodically a problem when my tor-server unexpectedly stop
and don't restart.
As I think, if my ISP restart their physicla machine or etc. (and my
vds) so the tor-daemon on my vds must start through that record, no?
So I wrote such script:
#!/bin/sh
# tormail.script
# checking of existing tor-daemon in system
# and mail to me if not
if [ -f /var/run/tor/tor.pid ] && [ -s /var/run/tor/tor.pid ] ; then
   :
    else
    /etc/rc.d/tor start || exim tor-ad...@orionjurinform.com <
/root/tormail.alarmmessage
fi

I want it to start tor if it doesn't work or if it impossible to send me
message.

and include it in my crontab, but it don't works.
It (and that record in my crontab) exist about 2 month and don't works.
I cannot understand why.
***********************************************************************
To unsubscribe, send an e-mail to majord...@torproject.org with
unsubscribe or-talk    in the body. http://archives.seul.org/or/talk/

Reply via email to