gitian-builder/libexec/stop-target

15 lines
270 B
Plaintext
Raw Normal View History

2011-01-30 21:12:02 +00:00
#!/bin/sh
if [ ! -e var/target.pid ]; then exit; fi
on-target -u root halt
sleep 5
if [ ! -e var/target.pid ]; then exit; fi
sleep 5
if [ ! -e var/target.pid ]; then exit; fi
echo Killing target since it did not shutdown within 10 seconds
kill `cat var/target.pid`