source: gs3-installations/thewillow/trunk/sites/thewillow/dlcol-chatgpt/DEPRECATED/react-gui/STOP-PROD.sh@ 38824

Last change on this file since 38824 was 38785, checked in by davidb, 3 months ago

Minor improvements to starting/stoping the NextJS server

  • Property svn:executable set to *
File size: 582 bytes
Line 
1#!/bin/bash
2
3echo ""
4echo "===="
5echo "Stopping the NodeJs-based Next server is currently a manual process"
6echo "Select the appropriate PID from the following, and run kill <pid>"
7echo "----"
8
9ps auxww | grep "next start" | grep node
10
11
12echo "----"
13echo ""
14
15
16pids=$(ps auxww | grep "next start" | grep node | awk '{print $2}')
17num_pids=$(echo $pids | wc -w)
18
19
20if [ $num_pids == 0 ] ; then
21 echo "**** No running NodeJS-based Next servers found!"
22else
23 echo "Suggested kill commands:"
24 echo ""
25
26 for pid in $pids ; do
27 echo " kill $pid"
28 done
29fi
30
31echo "----"
32echo ""
Note: See TracBrowser for help on using the repository browser.