mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
Allow reincarnation from mod_sofia's shutdown-on-fail
mod_sofia's parameter shutdown-on-fail now accepts the value "reincarnate-now". This will cause the switch to exit immediately with a non-zero exit code so that the supervisor can recover the switch. For this to work you have to pass in -reincarnate or -reincarnate-reexec to freeswitch.
This commit is contained in:
parent
80ed14ab3e
commit
52fb53cba4
@ -2478,6 +2478,9 @@ static void sofia_perform_profile_start_failure(sofia_profile_t *profile, char *
|
||||
} else if (!strcasecmp(profile->shutdown_type, "asap")) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile %s could not load! Shutting down ASAP!\n", profile->name);
|
||||
switch_core_session_ctl(SCSC_SHUTDOWN_ASAP, &arg);
|
||||
} else if (!strcasecmp(profile->shutdown_type, "reincarnate-now")) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Profile %s could not load! Asking for reincarnation now!\n", profile->name);
|
||||
switch_core_session_ctl(SCSC_REINCARNATE_NOW, &arg);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user