Merge "Add a screen session for tls logs"
This commit is contained in:
commit
6c55227595
7
lib/tls
7
lib/tls
@ -495,6 +495,13 @@ EOF
|
||||
reload_apache_server
|
||||
}
|
||||
|
||||
# Follow TLS proxy
|
||||
function follow_tls_proxy {
|
||||
sudo touch /var/log/$APACHE_NAME/tls-proxy_error.log
|
||||
tail_log tls-error /var/log/$APACHE_NAME/tls-proxy_error.log
|
||||
sudo touch /var/log/$APACHE_NAME/tls-proxy_access.log
|
||||
tail_log tls-proxy /var/log/$APACHE_NAME/tls-proxy_access.log
|
||||
}
|
||||
|
||||
# Cleanup Functions
|
||||
# =================
|
||||
|
4
stack.sh
4
stack.sh
@ -993,6 +993,10 @@ if [[ "$USE_SCREEN" == "True" ]]; then
|
||||
fi
|
||||
screen -r $SCREEN_NAME -X hardstatus alwayslastline "$SCREEN_HARDSTATUS"
|
||||
screen -r $SCREEN_NAME -X setenv PROMPT_COMMAND /bin/true
|
||||
|
||||
if is_service_enabled tls-proxy; then
|
||||
follow_tls_proxy
|
||||
fi
|
||||
fi
|
||||
|
||||
# Clear ``screenrc`` file
|
||||
|
Loading…
x
Reference in New Issue
Block a user