Re: [tor-relays] Updating relay using killall -hup command

2018-07-19 Thread Michael Brodhead
You pretty much need language support to make that work. Erlang has had 
in-process upgrade capability for ages. I'm not aware of another language which 
does it. Functional languages have an advantage since the top-level loop is 
typically a function calling itself.

--mkb


> On Jul 19, 2018, at 12:00 AM, Andreas Krey  wrote:
> 
> On Wed, 18 Jul 2018 15:01:36 +, Matt Traudt wrote:
> ...
>> No. You have to restart the process, thus the relay. (Can you update any
>> other program without restarting it entirely?
> 
> Wasn't exactly a feature but under SunOS/Solaris when you ran a program
> from an NFS mount, and recompiled it, the compiler would write into the
> existing file, and that would change the actual code mapping the program
> ran on (in its process).
> 
> Needless to say, in most cases of nontrivial changes this just lead
> to the program crashing.
> 
> - Andreas
> 
> -- 
> "Totally trivial. Famous last words."
> From: Linus Torvalds 
> Date: Fri, 22 Jan 2010 07:29:21 -0800
> ___
> tor-relays mailing list
> tor-relays@lists.torproject.org
> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays

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


Re: [tor-relays] Updating relay using killall -hup command

2018-07-19 Thread Andreas Krey
On Wed, 18 Jul 2018 15:01:36 +, Matt Traudt wrote:
...
> No. You have to restart the process, thus the relay. (Can you update any
> other program without restarting it entirely?

Wasn't exactly a feature but under SunOS/Solaris when you ran a program
from an NFS mount, and recompiled it, the compiler would write into the
existing file, and that would change the actual code mapping the program
ran on (in its process).

Needless to say, in most cases of nontrivial changes this just lead
to the program crashing.

- Andreas

-- 
"Totally trivial. Famous last words."
From: Linus Torvalds 
Date: Fri, 22 Jan 2010 07:29:21 -0800
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] Updating relay using killall -hup command

2018-07-18 Thread nusenu


Keifer Bly:
> Is there a way I can cause the upgrade to appear without completely 
> restarting the relay?

the answer is easy and short: no



-- 
https://twitter.com/nusenu_
https://mastodon.social/@nusenu



signature.asc
Description: OpenPGP digital signature
___
tor-relays mailing list
tor-relays@lists.torproject.org
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-relays


Re: [tor-relays] Updating relay using killall -hup command

2018-07-18 Thread Matt Traudt
On 7/18/18 14:58, Keifer Bly wrote:
> Hello,
> 
> 
> So recently I upgraded from tor 0.3.3.8 to tor 0.3.3.9, and used the
> killall -HUP command to restart the relay. However this did nothing, 
> the relay consensus says I am still running tor 0.3.3.8 days later. Is
> there a way I can cause the upgrade to appear without completely
> restarting the relay?
> 
> The OS is macos High Sierra 10.13.6.
> 

No. You have to restart the process, thus the relay. (Can you update any
other program without restarting it entirely? [If you say the Linux
kernel, does your distro actually do it?])

Don't fret about uptime or flags. Updates -- both for Tor and your OS --
are more important.

Thanks for running a relay.

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