ketr.photos/scripts/kill-server.sh
James Ketrenos 1ed1b1d1ea Added a few DB sanity tests for BLOB values between JS and Python
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
2023-01-16 17:06:55 -08:00

14 lines
240 B
Bash
Executable File

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