projects
/
asterisk/asterisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert alternate dialplan switch list to use read/write locks.
[asterisk/asterisk.git]
/
contrib
/
init.d
/
rc.debian.asterisk
diff --git
a/contrib/init.d/rc.debian.asterisk
b/contrib/init.d/rc.debian.asterisk
index
168197d
..
16e7706
100755
(executable)
--- a/
contrib/init.d/rc.debian.asterisk
+++ b/
contrib/init.d/rc.debian.asterisk
@@
-1,8
+1,13
@@
#! /bin/sh
#! /bin/sh
-# $Id: asterisk,v 1.2 2004/07/18 20:24:07 Gregory Boehnlein <damin@nacs.net>
+# $Id: asterisk,v 1.3 2005/11/17 22:30:01 Gregory Boehnlein <damin@nacs.net>
#
# asterisk start the asterisk PBX
#
#
# asterisk start the asterisk PBX
#
+# Thu Nov 17 2005 Gregory Boehnlein <damin@nacs.net>
+# - Updated Version to 1.3
+# - Reversed behavior of LD_ASSUME_KERNEL=2.4.1
+# - Added detailed failure messages
+#
# Sun Jul 18 2004 Gregory Boehnlein <damin@nacs.net>
# - Updated Version to 1.2
# - Added test for safe_asterisk
# Sun Jul 18 2004 Gregory Boehnlein <damin@nacs.net>
# - Updated Version to 1.2
# - Added test for safe_asterisk
@@
-19,8
+24,8
@@
DAEMON=/usr/sbin/asterisk
# Full path to safe_asterisk script
SAFE_ASTERISK=/usr/sbin/safe_asterisk
# Full path to safe_asterisk script
SAFE_ASTERISK=/usr/sbin/safe_asterisk
-# Leave this set unless you know what you are doing.
-export LD_ASSUME_KERNEL=2.4.1
+# Uncomment this ONLY if you know what you are doing.
+# export LD_ASSUME_KERNEL=2.4.1
# Uncomment the following and set them to the user/groups that you
# want to run Asterisk as. NOTE: this requires substantial work to
# Uncomment the following and set them to the user/groups that you
# want to run Asterisk as. NOTE: this requires substantial work to
@@
-30,7
+35,15
@@
export LD_ASSUME_KERNEL=2.4.1
#AST_USER="asterisk"
#AST_GROUP="asterisk"
#AST_USER="asterisk"
#AST_GROUP="asterisk"
-test -x $DAEMON || exit 0
+if ! [ -x $DAEMON ] ; then
+ echo "ERROR: /usr/sbin/asterisk not found"
+ exit 0
+fi
+
+if ! [ -d /etc/asterisk ] ; then
+ echo "ERROR: /etc/asterisk directory not found"
+ exit 0
+fi
set -e
set -e