From 420106d5a9823b81fe686789831dd2354bfaa678 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 12 Jul 2012 15:47:36 -0400 Subject: progress --- init_test.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 init_test.sh (limited to 'init_test.sh') diff --git a/init_test.sh b/init_test.sh new file mode 100755 index 0000000..d1e6f7d --- /dev/null +++ b/init_test.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# Test init.d-style initialization; run this script as root (or sudo it) + +export key=`./exmachina.py --random-key` + +echo $key | ./exmachina.py -vk --pid-file /tmp/exmachina_test.pid +sleep 1 +echo $key | ./test.py -k + +kill `cat /tmp/exmachina_test.pid` && rm /tmp/exmachina_test.pid +sleep 1 +jobs -- cgit v1.2.3