mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Turn on executable bits for startup scripts, and fix bash var interpolation for Mandrake
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@7285 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
0
contrib/init.d/rc.debian.asterisk
Normal file → Executable file
0
contrib/init.d/rc.debian.asterisk
Normal file → Executable file
0
contrib/init.d/rc.gentoo.asterisk
Normal file → Executable file
0
contrib/init.d/rc.gentoo.asterisk
Normal file → Executable file
9
contrib/init.d/rc.mandrake.asterisk
Normal file → Executable file
9
contrib/init.d/rc.mandrake.asterisk
Normal file → Executable file
@@ -15,7 +15,12 @@ CONSOLE=yes # Whether or not you want a console
|
|||||||
NOTIFY=root # Who to notify about crashes
|
NOTIFY=root # Who to notify about crashes
|
||||||
DUMPDROP=/tmp
|
DUMPDROP=/tmp
|
||||||
HOSTNAME=`hostname`
|
HOSTNAME=`hostname`
|
||||||
|
if [ 0`readlink $0` = "0" ]; then
|
||||||
CONFIGFILE=/etc/sysconfig/`basename $0`
|
CONFIGFILE=/etc/sysconfig/`basename $0`
|
||||||
|
else
|
||||||
|
CONFIG0=`readlink $0`
|
||||||
|
CONFIGFILE=/etc/sysconfig/`basename $CONFIG0`
|
||||||
|
fi
|
||||||
|
|
||||||
# Setup environment
|
# Setup environment
|
||||||
cd /usr/src
|
cd /usr/src
|
||||||
@@ -68,7 +73,7 @@ ulimit -c unlimited
|
|||||||
#{
|
#{
|
||||||
#}
|
#}
|
||||||
|
|
||||||
SIGMSG=("Hangup" "Interrupt" "Quit" "Illegal instruction" "Trace trap" "IOT Trap" "Bus Error" "Floating-point exception" "Killed" "User-defined signal 1" "Segmentation violation" "User-defined signal 2" "Broken pipe" "Alarm clock" "Termination" "Stack fault")
|
SIGMSG=("None", "Hangup" "Interrupt" "Quit" "Illegal instruction" "Trace trap" "IOT Trap" "Bus Error" "Floating-point exception" "Killed" "User-defined signal 1" "Segmentation violation" "User-defined signal 2" "Broken pipe" "Alarm clock" "Termination" "Stack fault")
|
||||||
|
|
||||||
run_asterisk()
|
run_asterisk()
|
||||||
{
|
{
|
||||||
@@ -90,7 +95,7 @@ run_asterisk()
|
|||||||
exit 0
|
exit 0
|
||||||
elif [ $EXITSTATUS -gt 128 ]; then
|
elif [ $EXITSTATUS -gt 128 ]; then
|
||||||
EXITSIGNAL=$(($EXITSTATUS - 128))
|
EXITSIGNAL=$(($EXITSTATUS - 128))
|
||||||
EXITMSG=$SIGMSG[$EXITSIGNAL]
|
EXITMSG=${SIGMSG[$EXITSIGNAL]}
|
||||||
echo "Asterisk exited on signal $EXITSIGNAL - $EXITMSG."
|
echo "Asterisk exited on signal $EXITSIGNAL - $EXITMSG."
|
||||||
if [ "$NOTIFY" != "" ]; then
|
if [ "$NOTIFY" != "" ]; then
|
||||||
echo "Asterisk exited on signal $EXITSIGNAL - $EXITMSG. Might want to take a peek." | \
|
echo "Asterisk exited on signal $EXITSIGNAL - $EXITMSG. Might want to take a peek." | \
|
||||||
|
|||||||
0
contrib/init.d/rc.mandrake.zaptel
Normal file → Executable file
0
contrib/init.d/rc.mandrake.zaptel
Normal file → Executable file
0
contrib/init.d/rc.redhat.asterisk
Normal file → Executable file
0
contrib/init.d/rc.redhat.asterisk
Normal file → Executable file
0
contrib/init.d/rc.slackware.asterisk
Normal file → Executable file
0
contrib/init.d/rc.slackware.asterisk
Normal file → Executable file
Reference in New Issue
Block a user