update readme

add sighup
This commit is contained in:
Jeff Becker 2018-09-17 07:47:34 -04:00
parent c900e9d004
commit e047bfa266
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
5 changed files with 47 additions and 11 deletions

View File

@ -36,6 +36,7 @@ main(int argc, char *argv[])
if(ctx)
{
signal(SIGINT, handle_signal);
signal(SIGHUP, handle_signal);
code = llarp_main_run(ctx);
llarp_main_free(ctx);
}

View File

@ -47,12 +47,7 @@ namespace llarp
llarp::LogError("failed to load config file ", configfile);
return false;
}
llarp_config_iterator iter;
iter.user = this;
iter.visit = &iter_config;
llarp_config_iter(config, &iter);
llarp::LogInfo("config [", configfile, "] loaded");
return true;
return router->ReloadConfig(config);
}
void

View File

@ -794,6 +794,12 @@ llarp_router::ConnectToRandomRouters(int want)
" random routers");
}
bool
llarp_router::ReloadConfig(const llarp_config *conf)
{
return true;
}
bool
llarp_router::InitOutboundLink()
{

View File

@ -182,6 +182,9 @@ struct llarp_router
void
try_connect(fs::path rcfile);
bool
ReloadConfig(const llarp_config *conf);
/// send to remote router or queue for sending
/// returns false on overflow
/// returns true on successful queue

View File

@ -1,16 +1,47 @@
# LokiNet
Lokinet is a private, decentralized and Sybil resistant overlay network for the internet, it uses a new routing protocol called LLARP (Low latency anonymous routing protocol)
LokiNet is the reference implementation of LLARP (low latency anonymous routing protocol), a layer 3 onion routing protocol.
You can learn more about the high level design of LLARP [here](doc/high-level.txt)
And you can read the LLARP protocol specification [here](doc/proto_v0.txt)
To build lokinet see the [lokinet-builder](https://github.com/loki-project/lokinet-builder) repository.
## Building
To build lokinet see the [lokinet builder](https://github.com/loki-project/lokinet-builder)
Download the latest release:
## Usage
https://github.com/loki-project/loki-network/releases
### Windows
If your platform doesn't have a release binary try building from source and report any bugs you find along the way.
Windows only supports client mode so you run `lokinet.exe` and that's it.
### Linux
Client mode:
For simple testing do:
$ lokinet
On systemd based distros you can persist it in the background:
# systemctl enable --now lokinet-client
Relay mode:
you can participate as a relay node trivially (for now).
On systemd based linux distros do:
# systemctl enable --now lokinet-relay
Alternatively:
# mkdir /usr/local/lokinet
# cd /usr/local/lokinet
# lokinet --genconf daemon.ini
# lokinet --check daemon.ini
# lokinet /usr/local/lokinet/daemon.ini