Skip to content
Snippets Groups Projects
  • Walter Doekes's avatar
    56caf540
    contrib: Let safe_asterisk script continue without /dev/tty9. · 56caf540
    Walter Doekes authored
    If you use the safe_asterisk script, it uses hardcoded defaults before
    running configurable values from /etc/asterisk/startup.d. The hardcoded
    default has TTY=9. Some containerized environments don't have such a
    TTY, and safe_asterisk would stop.
    
    The custom configuration from /etc/asterisk/startup.d/* isn't read until
    after it stopped, so changing TTY in a custom config did not help.
    
    This changeset changes safe_asterisk to continue if the TTY setting was
    untouched and /dev/tty9 and /dev/vc/9 aren't found.
    
    Change-Id: I2c7cdba549b77f418a0af4cb1227e8e6fe4148fc
    56caf540
    History
    contrib: Let safe_asterisk script continue without /dev/tty9.
    Walter Doekes authored
    If you use the safe_asterisk script, it uses hardcoded defaults before
    running configurable values from /etc/asterisk/startup.d. The hardcoded
    default has TTY=9. Some containerized environments don't have such a
    TTY, and safe_asterisk would stop.
    
    The custom configuration from /etc/asterisk/startup.d/* isn't read until
    after it stopped, so changing TTY in a custom config did not help.
    
    This changeset changes safe_asterisk to continue if the TTY setting was
    untouched and /dev/tty9 and /dev/vc/9 aren't found.
    
    Change-Id: I2c7cdba549b77f418a0af4cb1227e8e6fe4148fc