| 1 |
# This file allows you to alter the configuration of the Asterisk |
| 2 |
# init.d script. Normally you should leave the file as-is. |
| 3 |
# |
| 4 |
# RUNASTERISK: If set to anything other that 'yes', the asterisk init.d script |
| 5 |
# will not run. The default is 'yes'. |
| 6 |
#RUNASTERISK=no |
| 7 |
# |
| 8 |
# |
| 9 |
# AST_REALTIME: if set to anything other than "no", asterisk will run in |
| 10 |
# real-time priority (pass '-p' to asterisk). un-rem the |
| 11 |
# following line to disable asterisk from running in real-time |
| 12 |
# priority. The default is 'yes'. |
| 13 |
#AST_REALTIME=no |
| 14 |
# |
| 15 |
# PARAMS: extra parameters to pass to asterisk: generate cores in |
| 16 |
# case of crash, and be more verbose. -F guarantees that Asterisk |
| 17 |
# will still run daemonized. |
| 18 |
# |
| 19 |
# Instead of adding switches here, consider editing |
| 20 |
# /etc/asterisk/asterisk.conf |
| 21 |
#PARAMS="-F -g -vvv" |
| 22 |
# |
| 23 |
# |
| 24 |
# RUNASTSAFE: run safe_asterisk rather than asterisk (will auto-restart upon |
| 25 |
# crash). This is generally less tested and has some known issues |
| 26 |
# with properly starting and stopping Asterisk. |
| 27 |
#RUNASTSAFE=yes |
| 28 |
# |
| 29 |
# MAXFILES: Set this to the number of open file handles the Asterisk |
| 30 |
# process can have. Useful if you get "Too many open files" error. |
| 31 |
#MAXFILES=8192 |
| 32 |
# |
| 33 |
# AST_DUMPCORE: if set to anything other than "no", asterisk will be run with |
| 34 |
# the option -g (to tell it to dump core on crash) and its |
| 35 |
# working directory will be set to /var/spool/asterisk, as that |
| 36 |
# directory is writable and hence core files can be written there. |
| 37 |
# See /etc/init.d/asterisk for some other relevant variables. |
| 38 |
# |
| 39 |
# It is recommended that you install asterisk-dbg to be able |
| 40 |
# to produce meaningful backtraces from the core file. |
| 41 |
# |
| 42 |
# By default core files will be written to /tmp (can be |
| 43 |
# changed by setting AST_DUMPCORE_DIR). Alternatively, see |
| 44 |
# CORE_PATTERN below. |
| 45 |
#AST_DUMPCORE=yes |
| 46 |
# |
| 47 |
# AST_DUMPCORE_DIR: By default asterisk runs in the directory '/' like any |
| 48 |
# daemon. Setting this allows you to tell it to tell the |
| 49 |
# Asterisk daemon to run in a different directory if |
| 50 |
# AST_DUMPCORE is enabled. The default is |
| 51 |
# /var/spool/asterisk. That is a good choice because it |
| 52 |
# is writable (thus enabling the actual writing of the |
| 53 |
# core file) but relatively immune to symlink attacks |
| 54 |
# (because not world-writable like /tmp/). |
| 55 |
# Note, however, that if CORE_PATTERN is an absolute |
| 56 |
# path, it will override AST_DUMPCORE_DIR. |
| 57 |
# |
| 58 |
# CORE_PATTERN: If you use AST_DUMPCORE above, this is optionally set to a |
| 59 |
# pattern of the core file. The default is not to touch the |
| 60 |
# core_pattern settings, which is generally a good idea as |
| 61 |
# it affects every core file generated on your system. |
| 62 |
# |
| 63 |
# However if you just enable generation of core files and run |
| 64 |
# asterisk as a daemon it will fail to write core files. |
| 65 |
# |
| 66 |
# Alternatively you can set this independently elsewhere. |
| 67 |
# See http://lxr.linux.no/source/Documentation/sysctl/kernel.txt |
| 68 |
# Here is what Asterisk's ast_grab_core |
| 69 |
# script would expect: |
| 70 |
#CORE_PATTERN='core.%p' |
| 71 |
# But you might prefer something like: |
| 72 |
#CORE_PATTERN='core.%e.%t' |