RNS Logo

rns.recipes

◈ 9ce92808be498e9e05590ff27cbfdfe4

Live interface reload and control

Pinned

Started by Mark bc7291552be7a58f... ·

Mark 8dd57a7382268096...
#1

The latest source version of RNS on Aleph (1.5.5) has added --attach, --detach and --reload options to rnstatus.

 

This means you can now stop, start and reload interfaces live while an RNS instance is running.

 

I'll have this out relatively soon, but if you try it out in the meantime, let me know if anything is wonky.

 

The API functions are also exposed (Reticulum.reload_interface(name), et cetera), so applications that provide interface controls can use this for much easier hot-reloads, instead of having to restart the entire instance. It uses the latest config values from the configuration file on each attach/reload.

 

Enjoy!

deavmi 869bbca773f29371...
#2

I was just thinking about this being one of the things I wanted to add to my impl. About 5 minutes ago. Then I see this. (coming from i2pd, live reload is nice, although idk if i2pd's works)

deavmi 869bbca773f29371...
#3

One question, for us Docker users, would it make sense if I could contribute some code whereby this same functionality could be triggered by a UNIX/POSIX signal? As I could (i think) probably put something together to send a signal into the container. I mean, I guess I could also just docker exec reticulum_container rnstatus --reload, yeah that would work. Nevermind :)

Anonymous
#4

That sounds quite useful. Thx a lot!

 

deavmi wrote:

One question, for us Docker users, would it make sense if I could contribute some code whereby this same functionality could be triggered by a UNIX/POSIX signal? As I could (i think) probably put something together to send a signal into the container. I mean, I guess I could also just docker exec reticulum_container rnstatus --reload, yeah that would work. Nevermind :)

 

I would guess this also works with rnstatus remote managent, but I could be wrong

Torlando db3ffd2575469a78...
#5

Fantastic! Will get this added to Columba as soon as I can. Thanks Mark!

Post a Reply

Supports Markdown: **bold**, *italic*, `code`, ```code blocks```, [links](url)

Log in to upload images

Quote
Copied to clipboard