i2p / i2p.i2p

I2P is an anonymizing network, offering a simple layer that identity-sensitive applications can use to securely communicate. All data is wrapped with several layers of encryption, and the network is both distributed and dynamic, with no trusted parties.
https://geti2p.net
Other
1.95k stars 305 forks source link

debian: create a log dir on startup if absent #24

Closed kfeoktistoff closed 2 years ago

kfeoktistoff commented 2 years ago

Recently I found a bug:

  1. Install i2p
  2. Run i2p service as usual
  3. Drop directory /var/log/i2p
  4. Restart i2p service: sudo systemctl restart i2p.service

Result: i2p failed to start only because the log dir was removed by mistake or for another reason.

The purpose of this little PR is to create the log dir on start if necessary.

eyedeekay commented 2 years ago

LGTM.