diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-27 18:22:22 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-12-27 18:22:22 +0000 |
commit | 75da7182a77beb5b43a779d5ab488058531e6399 (patch) | |
tree | c554d1e87cd8d6edd08f1cea10ddc99476a76338 /contrib | |
parent | 4108331e7b7d61e85f694c5ad0a22bcb79acb226 (diff) |
Merged revisions 236434 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r236434 | tilghman | 2009-12-27 12:20:53 -0600 (Sun, 27 Dec 2009) | 9 lines
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: http://svn.digium.com/svn/asterisk/branches/1.6.2@236437 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/init.d/rc.debian.asterisk | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/contrib/init.d/rc.debian.asterisk b/contrib/init.d/rc.debian.asterisk index 889bd1eaa..f88f60e0c 100755 --- a/contrib/init.d/rc.debian.asterisk +++ b/contrib/init.d/rc.debian.asterisk @@ -37,6 +37,10 @@ TRUE=/bin/true #AST_USER="asterisk" #AST_GROUP="asterisk" +# If you DON'T want Asterisk to start up with terminal colors, comment +# this out. +COLOR=yes + set -e if ! [ -x $DAEMON ] ; then @@ -76,7 +80,12 @@ case "$1" in chgrp $AST_GROUP $ASTVARRUNDIR fi # "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 $? ;; stop) |