Skip to content
Snippets Groups Projects
Commit 9ce49d15 authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Merged revisions 236433 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r236433 | tilghman | 2009-12-27 12:19:38 -0600 (Sun, 27 Dec 2009) | 2 lines
  
  Turn on colors in the daemon, since there's many requests for it on Ubuntu.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236434 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8a228111
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,10 @@ TRUE=/bin/true ...@@ -49,6 +49,10 @@ TRUE=/bin/true
#AST_USER="asterisk" #AST_USER="asterisk"
#AST_GROUP="asterisk" #AST_GROUP="asterisk"
# If you DON'T want Asterisk to start up with terminal colors, comment
# this out.
COLOR=yes
set -e set -e
if ! [ -x $DAEMON ] ; then if ! [ -x $DAEMON ] ; then
...@@ -88,7 +92,12 @@ case "$1" in ...@@ -88,7 +92,12 @@ case "$1" in
chgrp $AST_GROUP $ASTVARRUNDIR chgrp $AST_GROUP $ASTVARRUNDIR
fi fi
# "start-stop-daemon --oknodo" returns 0 even if Asterisk was already running (as LSB expects): # "start-stop-daemon --oknodo" returns 0 even if Asterisk was already running (as LSB expects):
start-stop-daemon --start --oknodo --exec $DAEMON -- $ASTARGS if test "x$COLOR" = "xyes" ; then
export TERM=linux
start-stop-daemon --start --oknodo --background --exec $DAEMON -- $ASTARGS -c
else
start-stop-daemon --start --oknodo --exec $DAEMON -- $ASTARGS
fi
log_end_msg $? log_end_msg $?
;; ;;
stop) stop)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment