I2P on laptop: How to properly shut down the router?

6 months ago by stravanasu to c/i2p

I installed I2P on a Linux laptop. For the moment I'd prefer not to have I2P to start automatically as system service. The installation guide says that after installation I can simply run i2prouter start, which starts the service and opens the router console on my browser; I've configured the router.

Question 1: what's the best way to shut down router and service, when I need to? The guide above says I can use the command i2prouter stop; but I also see buttons on the browser console and on the tray on the taskbar.

Question 2: I've also noticed that sometimes after i2prouter start I get asked again to configure the router. How do I make sure the configuration is saved once and for all?

Unfortunately I didn't find anything about these specific points in guides or FAQs.

Thanks for helping!

WhyJiffie 6 points 6 months ago

I don't have concrete advice, but know that the i2p router needs 10 minutes to shut down gracefully. you can force it, but I think that will interrupt the connection of others, so if you don't want to experience it then best to not do it

path: 0 23290915, hotness: undefined, score: 6, children: 4
pglpm 5 points 6 months ago

Thank you for the information and advice. I'll set aside 15 min for shutting it down gracefully then.

path: 0 23290915 23297779, hotness: undefined, score: 5, children: 2
WhyJiffie 2 points 6 months ago

oh and one more thing. if you run it in docker, it won't receive the system shutdown signal. on your setup you probably don't have this problem, buy you can check on the web interface if it is shutting down

path: 0 23290915 23297779 23301350, hotness: undefined, score: 2, children: 1
pglpm 1 point 6 months ago

Thanks for the additional tip! Not using docker at the moment, but I'll keep this in mind if I do :)

path: 0 23290915 23297779 23301350 23347037, hotness: undefined, score: 1, children: 0
kylian0087 1 point 6 months ago

Also forcing a shutdown can cause some of the configs to get corrupted.

path: 0 23290915 23297419, hotness: undefined, score: 1, children: 0
toothbrush 2 points 6 months ago

Question 1: i2prouter graceful is the correct command, but it takes 11 mins to shut down.

The browser button does the same thing as the terminal. It can do both graceful and stop, which is immediate.

Question 2: Sounds like a bug, where is your config file located? Maybe it has the wrong permissions on it?

path: 0 23292696, hotness: undefined, score: 2, children: 1
pglpm 2 points 6 months ago

Thank you for the reply and explanations! Now I understand. I'll also use i2prouter graceful then.

Regarding the config, I'll investigate. It occurs only from time to time, but it may have happened because I was shutting the router down the wrong way.

Thanks again!

path: 0 23292696 23297774, hotness: undefined, score: 2, children: 0
schnur 1 point 6 months ago

@pglpm Question 1:
It makes no difference, the GUI is just a wrapper for the CLI command. I prefer 'i2prouter graceful': It takes longer but you don't stop other peoples tunnels.

path: 0 23297791, hotness: undefined, score: 1, children: 1
pglpm 1 point 6 months ago

Thank you, this is exactly what was unclear to me. I also prefer to shut it down from the command line. I'll use the graceful command as well!

path: 0 23297791 23297793, hotness: undefined, score: 1, children: 0
i2p
i2p

@lemmy.world

login for more options
2016
168
13

I2P Community Edition

This isn't the official I2P channel, if you want go there then you can find it in the links below.

Rules

  • Be nice and friendly
  • Don't spam
  • No darknet markets
  • No malicious content
  • No closed source software
  • No excessive self promotion
  • No violence or hate speech
  • I2P related posts only
  • Please use English
  • No illegal file sharing
  • Lemmy rules also apply here
  • No crypto-currency

"Don't be a dick" - Wil Wheaton

General

Media:

File Hosting and Pastebins

Torrents

Social Networks and Microblogging

  • Teddit - Privacy respecting Reddit front end

  • Ramble - Multi-Network reddit alternative

Exploring I2P

  • Notbob List online .i2p sites and categorizes them

I2P Name Registries

Search engines

IRC

Irc2P comes pre-configured with I2P. To connect with other networks, please follow this tutorial.

  • Irc2P (works out of the box)

Syndie

An open source system for operating distributed forums in anonymous networks

Inproxies

You can use inproxies to surf the I2P network without having to have an I2P router.

Follow us on Twitter

go to feed...