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