git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@21678
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
#
ulimit -c unlimited
-#launch_asterisk()
-#{
-#}
+#
+# Run scripts to set any environment variables or do any other system-specific setup needed
+#
+
+if [ -d /etc/asterisk/startup.d ]; then
+ for script in /etc/asterisk/startup.d/*.sh; do
+ if [ -x ${script} ]; then
+ source ${script}
+ fi
+ done
+fi
run_asterisk()
{
If core files were generated there, they may be
.RE
+.B /etc/asterisk/startup.d
+.RS
+Files in this directory will be 'source'd by the safe_asterisk script before
+it starts Asterisk proper, allowing them to set additional environment variables
+or run any other steps that are needed for your system.
+.RE
+
.SH BUGS
While showing the output on a console is useful, using screen(1) as
the terminal may be better.