mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-09 00:00:53 -04:00
Reload strongswan.conf and plugins supporting reloading on SIGHUP
This commit is contained in:
parent
fd3c12bf06
commit
3b71d3d033
@ -109,7 +109,16 @@ static void run()
|
|||||||
{
|
{
|
||||||
case SIGHUP:
|
case SIGHUP:
|
||||||
{
|
{
|
||||||
DBG1(DBG_DMN, "signal of type SIGHUP received. Ignored");
|
DBG1(DBG_DMN, "signal of type SIGHUP received. Reloading "
|
||||||
|
"configuration");
|
||||||
|
if (lib->settings->load_files(lib->settings, NULL, FALSE))
|
||||||
|
{
|
||||||
|
lib->plugins->reload(lib->plugins, NULL);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
DBG1(DBG_DMN, "reloading config failed, keeping old");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case SIGINT:
|
case SIGINT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user