#!/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