Mercurial Hosting > luan
comparison host/check_app.sh @ 2029:5fa5a7efc936
merge
| author | Violet7 | 
|---|---|
| date | Thu, 30 Oct 2025 21:25:37 -0700 | 
| parents | 677795f0a4e7 | 
| children | ee75b5c12272 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 2028:2f43f84191c9 | 2029:5fa5a7efc936 | 
|---|---|
| 1 PIDS=""; | 1 PIDS=""; | 
| 2 | 2 | 
| 3 export PATH="$PATH:/usr/local/bin"; | 3 export PATH="$PATH:/usr/local/bin"; | 
| 4 | 4 | 
| 5 function getPids() { | 5 function getPids() { | 
| 6 PIDS=$(ps ax | awk '{if($0~"[r]un.luan"){print $1}}'); | 6 PIDS=$(ps ax | awk '{if($0~"[r]un(_host)?.luan"){print $1}}'); | 
| 7 } | 7 } | 
| 8 | 8 | 
| 9 function checkStopped() { | 9 function checkStopped() { | 
| 10 getPids; | 10 getPids; | 
| 11 if [ "$PIDS" != "" ]; then | 11 if [ "$PIDS" != "" ]; then | 
