mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-03 03:40:27 +00:00
fsctl add shutdown now for debugging
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16220 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5e45ff07a3
commit
009fe09c3c
@ -1433,7 +1433,8 @@ typedef enum {
|
||||
SCSC_CANCEL_SHUTDOWN,
|
||||
SCSC_SEND_SIGHUP,
|
||||
SCSC_DEBUG_LEVEL,
|
||||
SCSC_FLUSH_DB_HANDLES
|
||||
SCSC_FLUSH_DB_HANDLES,
|
||||
SCSC_SHUTDOWN_NOW
|
||||
} switch_session_ctl_t;
|
||||
|
||||
typedef enum {
|
||||
|
@ -1477,6 +1477,8 @@ SWITCH_STANDARD_API(ctl_function)
|
||||
break;
|
||||
} else if (!strcasecmp(argv[x], "elegant")) {
|
||||
command = SCSC_SHUTDOWN_ELEGANT;
|
||||
} else if (!strcasecmp(argv[x], "now")) {
|
||||
command = SCSC_SHUTDOWN_NOW;
|
||||
} else if (!strcasecmp(argv[x], "asap")) {
|
||||
command = SCSC_SHUTDOWN_ASAP;
|
||||
} else if (!strcasecmp(argv[x], "restart")) {
|
||||
|
@ -1610,6 +1610,9 @@ SWITCH_DECLARE(int32_t) switch_core_session_ctl(switch_session_ctl_t cmd, int32_
|
||||
case SCSC_CANCEL_SHUTDOWN:
|
||||
switch_clear_flag((&runtime), SCF_SHUTDOWN_REQUESTED);
|
||||
break;
|
||||
case SCSC_SHUTDOWN_NOW:
|
||||
exit(0);
|
||||
break;
|
||||
case SCSC_SHUTDOWN_ELEGANT:
|
||||
case SCSC_SHUTDOWN_ASAP:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user