ketr.photos/scripts/kill-client.sh
James Ketrenos 743d7cc5ea React is now working
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
2023-01-16 14:35:09 -08:00

15 lines
266 B
Bash
Executable File

#!/bin/bash
pid=$(ps aux |
grep -E '[0-9] (/usr/bin/)?node .*client.*react-scripts/scripts/start.js' |
while read user pid rest; do
echo $pid;
done)
if [[ "$pid" != "" ]]; then
echo "Killing ${pid}"
kill $pid
else
echo "No node client found"
fi