Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions 11 systemvm/patches/debian/config/opt/cloud/bin/vr_cfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,15 @@ done < $cfg
#remove the configuration file, log file should have all the records as well
rm -f $cfg

# Flush kernel conntrack table
log_it "VR config: Flushing conntrack table"
conntrackd -d 2> /dev/null
if [ $? -eq 0 ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

instead of ps | grep, why not use status result and start, like: service conntrackd status || service conntrackd start (or other commands) etc.

conntrackd -F
conntrackd -k
else
conntrackd -F
fi
log_it "VR config: Flushing conntrack table completed"

exit 0
Morty Proxy This is a proxified and sanitized view of the page, visit original site.