Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

Commit

Permalink
luv-test-manager: Add luv.halt cmdline option for powering off
Browse files Browse the repository at this point in the history
When running automated tests it's super handy to be able to power off
the machine once the tests have completed. This signals to any
monitoring processes/machines that results are ready to be inspected.

If you've got a smart PDU you should be able to query it for the
machine's status to know when it's off, but a poor man's solution would
be to ping the machine and wait a couple of seconds extra once it
disappears from the network.

Reviewed-by: Naresh Bhat <[email protected]>
Tested-by: Naresh Bhat <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
  • Loading branch information
Matt Fleming committed Apr 14, 2015
1 parent 0a8c731 commit 19534b7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,8 @@ fi

umount -l /mnt/.psplash
}

grep -q luv.halt /proc/cmdline
if [ $? -ne 1 ]; then
halt -p
fi

0 comments on commit 19534b7

Please sign in to comment.