/usr/share/phoronix-test-suite/pts-core/static/examples/phoromatic-init-starter is in phoronix-test-suite 4.8.3-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/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
|