15 lines
259 B
Bash
Executable File
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
|
|
|