3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +01:00
PyLink/kill.sh
James Lu 5ab7b507be Add wrapper scripts (start-cpulimit.sh, kill.sh) to assist running PyLink under cpulimit
Again, we're trying to prevent the software from frying people's CPUs...
2015-07-25 16:58:11 -07:00

7 lines
238 B
Bash
Executable File

#!/usr/bin/env bash
# Script to kill PyLink quickly when running under CPUlimit, since
# it will daemonize after threads are spawned and Ctrl-C won't work.
kill $(cat pylink.pid)
echo 'Killed. Press Ctrl-C in the PyLink window to exit.'