[tor-relays] Restart relay daily

Roman Mamedov rm at romanrm.ru
Tue Apr 23 18:05:29 UTC 2013


On Tue, 23 Apr 2013 19:30:07 +0200
peckman at hushmail.com 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-relays/attachments/20130424/20175d42/attachment.pgp>


More information about the tor-relays mailing list