safe_asterisk: Cleanup and debian compatibility.
authorWalter Doekes <walter+asterisk@wjd.nu>
Wed, 4 Jun 2014 20:16:40 +0000 (20:16 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Wed, 4 Jun 2014 20:16:40 +0000 (20:16 +0000)
commitcfb9c8bff1969dacadf97292c49bc3e1dcf17b17
treee0be60523335701763771f816c1e5ea62f7d46b5
parent6b423e311b694433a474e724baa73c32f5258274
safe_asterisk: Cleanup and debian compatibility.

Cleans up the safe_asterisk script and adds the ASTSAFE_FOREGROUND
option that allows the debian asterisk init script to capture the
right pid.

* Drop the vim #modeline which wasn't used. Use test consistently
  without the odd configure xno syntax. Double quote all paths.
  General cleanup.
* Don't output message()s to the console but only to TTY if set.
* Allow TTY to be "no" as well as empty (debian compatibility with
  debian/patches/safe_asterisk-config).
* Add option to export ASTSAFE_FOREGROUND=1 from the init script
  that calls this to disable backgrounding. Debian uses a similar
  method in debian/patches/safe_asterisk-nobg).

ASTERISK-23492 #close
Review: https://reviewboard.asterisk.org/r/3574/
........

Merged revisions 415132 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 415171 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 415172 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@415173 65c4cc65-6c06-0410-ace0-fbb531ad65f3
contrib/scripts/safe_asterisk