Mercurial Hosting > luan
annotate host/check_app.sh @ 2017:65f36a905e1e
revert and just change Compiled.VERSION
| author | Franklin Schmidt <fschmidt@gmail.com> |
|---|---|
| date | Thu, 02 Oct 2025 14:15:48 -0600 |
| parents | 665049cffc02 |
| children |
| rev | line source |
|---|---|
| 1628 | 1 PIDS=""; |
| 2 | |
| 1633 | 3 export PATH="$PATH:/usr/local/bin"; |
| 4 | |
| 1628 | 5 function getPids() { |
| 6 PIDS=$(ps ax | awk '{if($0~"[r]un.luan"){print $1}}'); | |
| 7 } | |
| 8 | |
| 9 function checkStopped() { | |
| 10 getPids; | |
| 11 if [ "$PIDS" != "" ]; then | |
| 12 echo "App already running"; | |
| 13 exit 0; | |
| 14 fi; | |
| 15 } | |
| 16 | |
| 17 function checkRunning() { | |
| 18 getPids; | |
| 19 if [ "$PIDS" != "" ]; then | |
| 20 echo "App running"; | |
| 21 else | |
| 22 echo "App not running"; | |
| 23 exit 0; | |
| 24 fi; | |
| 25 } |
