mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-02 13:12:43 +00:00
Added client tunnel reload on SIGHUP for Linux
This commit is contained in:
1 parent
abcf030181
commit
c908beade2
2 files changed
+10
-2
No files matched your search
+3
-1
@@ -13,14 +13,16 @@
|
||||
#include "FS.h"
|
||||
#include "Log.h"
|
||||
#include "RouterContext.h"
|
||||
#include "ClientContext.h"
|
||||
|
||||
void handle_signal(int sig)
|
||||
{
|
||||
switch (sig)
|
||||
{
|
||||
case SIGHUP:
|
||||
LogPrint(eLogInfo, "Daemon: Got SIGHUP, reopening log...");
|
||||
LogPrint(eLogInfo, "Daemon: Got SIGHUP, reopening logs and tunnel configuration...");
|
||||
i2p::log::Logger().Reopen ();
|
||||
i2p::client::context.ReloadConfig();
|
||||
break;
|
||||
case SIGINT:
|
||||
if (i2p::context.AcceptsTunnels () && !Daemon.gracefullShutdownInterval)
|
||||
|
||||
Reference in new issue
Block a user