[swss/syncd] log swss/syncd service script activities (#2545)

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
This commit is contained in:
Ying Xie 2019-02-10 11:56:31 -08:00 committed by GitHub
parent 7b81d4ddd6
commit 44551d0fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,7 @@ LOCKFILE="/tmp/swss-syncd-lock"
function debug()
{
/usr/bin/logger $1
/bin/echo `date` "- $1" >> ${DEBUGLOG}
}
@ -90,6 +91,7 @@ start() {
# Don't flush DB during warm boot
if [[ x"$WARM_BOOT" != x"true" ]]; then
debug "Flushing databases ..."
/usr/bin/docker exec database redis-cli -n 0 FLUSHDB
/usr/bin/docker exec database redis-cli -n 2 FLUSHDB
/usr/bin/docker exec database redis-cli -n 5 FLUSHDB

View File

@ -7,6 +7,7 @@ LOCKFILE="/tmp/swss-syncd-lock"
function debug()
{
/usr/bin/logger $1
/bin/echo `date` "- $1" >> ${DEBUGLOG}
}
@ -88,7 +89,8 @@ start() {
else
rm -f /host/warmboot/warm-starting
# Flush DB during non-warm start
# Flush ASIC DB during non-warm start
debug "Flushing ASIC database ..."
/usr/bin/docker exec database redis-cli -n 1 FLUSHDB
fi