Add fsctl command to summon reincarnation

If you start freeswitch with -reincarnate or -reincarnate-reexec, FS
will restart automatically in the event of an unexpected exit.

Currently, you can cause FS to immediately call exit(0) with `fsctl
shutdown now`, or you can have it call abort() with `fsctl crash`.
Which are both nice, but if you have reincarnation engaged, you really
might want FS to call exit([non-zero]) so the great supervisor
immediately breathes life back into your system.

This is now available via `fsctl shutdown reincarnate now`.
This commit is contained in:
Travis Cross
2014-06-10 22:21:38 +00:00
parent ca0d10f283
commit aa10023269
3 changed files with 10 additions and 0 deletions
+1
View File
@@ -1861,6 +1861,7 @@ typedef enum {
SCSC_DEBUG_LEVEL,
SCSC_FLUSH_DB_HANDLES,
SCSC_SHUTDOWN_NOW,
SCSC_REINCARNATE_NOW,
SCSC_CALIBRATE_CLOCK,
SCSC_SAVE_HISTORY,
SCSC_CRASH,