[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-relays] Restart relay daily



On Tue, 23 Apr 2013 19:30:07 +0200
peckman@xxxxxxxxxxxx wrote:

> Hi! 
> 
> I am running a middle-man relay on a Raspberry Pi averaging 700 kBps. The board is very limited in processing power and memory. After some days, maybe a week, the Tor daemon runs out of memory and I have to start it manually again. I have tried different Tor versions, built alphas with and without the --enable-openbsd-malloc but it's no measurable difference; eventually a bad malloc will terminate the program. 
> 
> To solve this I have added a cron job to restart the daemon on a daily basis. Is this an OK solution?

No.

Add a cronjob to _start_ it every 5 minutes. Not restart.

If it's already running, just nothing will happen. But if it died, it will
simply start. (Trust-me-I-know-I-ran-tor-on-128-MB-of-RAM-VPSes.)


-- 
With respect,
Roman

Attachment: signature.asc
Description: PGP signature

_______________________________________________
tor-relays mailing list
tor-relays@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays