Skip to content

Commit

Permalink
Merge pull request #81 from MissionCriticalCloud/fix/check-for-qga-pr…
Browse files Browse the repository at this point in the history
…ocess

Improve detection of qemu-guest-agent process
  • Loading branch information
neubauerf authored Sep 22, 2016
2 parents 8737cf4 + 2b8b0fe commit 796c013
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,13 @@ get_boot_params() {
fi

# Make sure the Qemu guest agent is running, or else we will be waiting forever
ps aux | grep qemu | grep -v grep > /dev/null 2>&1
if [ $? -gt 0 ]; then
if ! /etc/init.d/qemu-guest-agent status &>/dev/null; then
log_it "Starting Qemu guest agent"
/etc/init.d/qemu-guest-agent start
if [ $? -gt 0 ]; then
log_it "Starting Qemu Guest Agent failed!"
return false
fi
else
log_it "Good! Qemu guest agent already running."
fi
Expand Down

0 comments on commit 796c013

Please # to comment.