Added scripts
Signed-off-by: James Ketrenos <james_eikona@ketrenos.com>
This commit is contained in:
parent
0965cd5d85
commit
3c8eeba2d0
10
scripts/kill-client.sh
Executable file
10
scripts/kill-client.sh
Executable 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
12
scripts/kill-nginx.sh
Executable 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
10
scripts/kill-server.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user