safe_asterisk.8 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .TH SAFE_ASTERISK 8 "Jun 30th, 2005" "Asterisk" "Linux Programmer's Manual"
  2. .SH NAME
  3. .B safe_asterisk
  4. \(em A wrapper to run the asterisk executable in a loop
  5. .SH SYNOPSIS
  6. .PP
  7. .B safe_asterisk
  8. .I [ asterisk_params ]
  9. .SH DESCRIPTION
  10. .B safe_asterisk
  11. is a script that runs asterisk in a loop, which can be useful if you
  12. fear asterisk may crash.
  13. The script does not run in the background like a standard service. Rather,
  14. it runs in its own linux virtual console (9, by default).
  15. It also uses the option '\-c' of asterisk(8) to avoid detaching asterisk
  16. from that terminal.
  17. safe_asterisk also runs asterisk with unlimited core file size, and thus
  18. asterisk will dump core in case of a crash.
  19. To get a "picture" of console 9, from another terminal (e.g: from a
  20. remote shell session) you can use:
  21. screendump 9
  22. The init script of the Debian package should be able to run safe_asterisk
  23. as the asterisk service, if so configured. See coments in
  24. /etc/default/asterisk
  25. .SH FILES
  26. .B /tmp
  27. .RS
  28. safe_asterisk runs in that directory, rather than in / as usual.
  29. .RE
  30. .B /tmp/core
  31. .RS
  32. If core files were generated there, they may be
  33. .RE
  34. .B /etc/asterisk/startup.d
  35. .RS
  36. Files in this directory will be 'source'd by the safe_asterisk script before
  37. it starts Asterisk proper, allowing them to set additional environment variables
  38. or run any other steps that are needed for your system.
  39. .RE
  40. .SH BUGS
  41. While showing the output on a console is useful, using screen(1) as
  42. the terminal may be better.
  43. The script does not read configuration from standard location under /etc
  44. It uses fixed locations under /tmp , and thus may be exposed to a
  45. symlink attacks.
  46. .SH SEE ALSO
  47. asterisk(8), screendump(9)
  48. .SH "AUTHOR"
  49. This manual page was written by Tzafrir Cohen <tzafrir.cohen@xorcom.com>
  50. Permission is granted to copy, distribute and/or modify this document under
  51. the terms of the GNU General Public License, Version 2 any
  52. later version published by the Free Software Foundation.
  53. On Debian systems, the complete text of the GNU General Public
  54. License can be found in /usr/share/common\-licenses/GPL\-2.