Skip to content

Commit

Permalink
[baseimage]: Increase TMOUT for serial port connections to 15 minutes (
Browse files Browse the repository at this point in the history
…#3032)

Increase TMOUT value in order to close inactive serial console connections after 900 seconds (15 minutes) of inactivity
  • Loading branch information
jleveque authored and yxieca committed Jun 19, 2019
1 parent c9748dd commit 02fc130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions files/image_config/bash/bash.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@ if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-no
}
fi

# enable auto-logout for console ttyS* sessions
tty | grep ttyS >/dev/null && TMOUT=300
# Automatically log out console ttyS* sessions after 15 minutes of inactivity
tty | grep ttyS >/dev/null && TMOUT=900

0 comments on commit 02fc130

Please sign in to comment.