#!/bin/sh
# /etc/init.d/phoromatic-init-starter
# update-rc.d phoromatic-init-starter defaults

case "$1" in
  start)
    echo "Starting Phoromatic"
    rm -f /tmp/phoromatic-output
    DISPLAY=:0 phoronix-test-suite phoromatic.start >> /tmp/phoromatic-output
    ;;
  stop)
    echo "Stopping Phoromatic"
    touch /root/.phoronix-test-suite/halt-testing
    ;;
  *)
    echo "Usage: /etc/init.d/phoromatic-init-starter {start|stop}"
    exit 1
    ;;
esac

exit 0

