Added scripts

Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
James Ketrenos 2023-01-15 15:52:35 -08:00
parent 0965cd5d85
commit 3c8eeba2d0
3 changed files with 32 additions and 0 deletions

10
scripts/kill-client.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
pid=$(ps aux |
grep '[0-9] node .*react-scripts start' |
while read user pid rest; do
echo $pid;
done)
if [[ "$pid" != "" ]]; then
kill $pid
fi

12
scripts/kill-nginx.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
pid=$(ps aux |
grep '[0-9] nginx' |
while read user pid rest; do
echo $pid;
done)
if [[ "$pid" != "" ]]; then
kill $pid
fi

10
scripts/kill-server.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
pid=$(ps aux |
grep '[0-9] node app.js' |
while read user pid rest; do
echo $pid;
done)
if [[ "$pid" != "" ]]; then
kill $pid
fi