[asterisk-commits] branch 1.2 r21638 -
/branches/1.2/contrib/scripts/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Apr 19 14:10:42 MST 2006
Author: kpfleming
Date: Wed Apr 19 16:10:41 2006
New Revision: 21638
URL: http://svn.digium.com/view/asterisk?rev=21638&view=rev
Log:
support system-specific scripts in safe_asterisk, before starting Asterisk proper
Modified:
branches/1.2/contrib/scripts/safe_asterisk
branches/1.2/contrib/scripts/safe_asterisk.8
Modified: branches/1.2/contrib/scripts/safe_asterisk
URL: http://svn.digium.com/view/asterisk/branches/1.2/contrib/scripts/safe_asterisk?rev=21638&r1=21637&r2=21638&view=diff
==============================================================================
--- branches/1.2/contrib/scripts/safe_asterisk (original)
+++ branches/1.2/contrib/scripts/safe_asterisk Wed Apr 19 16:10:41 2006
@@ -34,9 +34,17 @@
#
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()
{
Modified: branches/1.2/contrib/scripts/safe_asterisk.8
URL: http://svn.digium.com/view/asterisk/branches/1.2/contrib/scripts/safe_asterisk.8?rev=21638&r1=21637&r2=21638&view=diff
==============================================================================
--- branches/1.2/contrib/scripts/safe_asterisk.8 (original)
+++ branches/1.2/contrib/scripts/safe_asterisk.8 Wed Apr 19 16:10:41 2006
@@ -40,6 +40,13 @@
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.
More information about the asterisk-commits
mailing list