ketr.photos/scripts/kill-client.sh
James Ketrenos 3e9438bb27 Switched back to port 80 (http) instead of https in the container
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
2023-01-23 07:54:15 -08:00

15 lines
259 B
Bash
Executable File

#!/bin/bash
pid=$(ps aux |
grep -E '[0-9] (/usr/bin/)?node .*client.*craco.*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