mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-24 04:37:37 +01:00
Reload client config on SIGHUP
This commit is contained in:
parent
0e31da5e51
commit
ae6153105f
1 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "FS.h"
|
||||
#include "Log.h"
|
||||
#include "RouterContext.h"
|
||||
#include "ClientContext.h"
|
||||
|
||||
void handle_signal(int sig)
|
||||
{
|
||||
|
@ -21,6 +22,7 @@ void handle_signal(int sig)
|
|||
case SIGHUP:
|
||||
LogPrint(eLogInfo, "Daemon: Got SIGHUP, reopening log...");
|
||||
i2p::log::Logger().Reopen ();
|
||||
i2p::client::context.ReloadConfig();
|
||||
break;
|
||||
case SIGINT:
|
||||
if (i2p::context.AcceptsTunnels () && !Daemon.gracefullShutdownInterval)
|
||||
|
|
Loading…
Add table
Reference in a new issue