diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-10-17 22:32:10 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-10-17 22:32:10 +0200 |
commit | 11d3cb218027e63135bd3f65c2e0b6a565c69913 (patch) | |
tree | 2f2f61c0daebebdede39d292b6091adc9a441b4f /print-backtrace.gdb | |
parent | a5666899266206df082c202e5c0ee1e7e3cb8e63 (diff) | |
download | manaserv-11d3cb218027e63135bd3f65c2e0b6a565c69913.tar.gz manaserv-11d3cb218027e63135bd3f65c2e0b6a565c69913.tar.bz2 manaserv-11d3cb218027e63135bd3f65c2e0b6a565c69913.tar.xz manaserv-11d3cb218027e63135bd3f65c2e0b6a565c69913.zip |
Added the initial version of a server monitor
It launches the account and game servers and restarts them when they
quit unexpectedly. When a core file is found after a server quit, a
backtrace is emailed when the CRASH_REPORT_RECEIVER environment variable
is set.
The monitor should be terminated with the TERM signal, which makes sure
the servers get some time to shutdown gracefully.
Diffstat (limited to 'print-backtrace.gdb')
-rw-r--r-- | print-backtrace.gdb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/print-backtrace.gdb b/print-backtrace.gdb new file mode 100644 index 00000000..2f6da3b6 --- /dev/null +++ b/print-backtrace.gdb @@ -0,0 +1,7 @@ +echo == BACKTRACE ==\n +bt +echo == CODE AT FRAME 0 ==\n +list +echo == FULL BACKTRACE ==\n +bt full +quit |