]> git.ipfire.org Git - thirdparty/asterisk.git/commit
safe_asterisk: Cleanup and debian compatibility.
authorWalter Doekes <walter+asterisk@wjd.nu>
Wed, 4 Jun 2014 20:14:16 +0000 (20:14 +0000)
committerWalter Doekes <walter+asterisk@wjd.nu>
Wed, 4 Jun 2014 20:14:16 +0000 (20:14 +0000)
commitb10186e2873f0e8488195e55d0cadc739b7d209b
tree4442194939d27782ed5556b95e634990b481fc9e
parenta9533248d3452a641b42055cc8c2ca8944d806fc
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

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