Mercurial Hosting > luan
comparison backup/stop.sh @ 2025:677795f0a4e7
fix
| author | Franklin Schmidt <fschmidt@gmail.com> | 
|---|---|
| date | Wed, 29 Oct 2025 21:34:39 -0600 | 
| parents | 45eaaf5146f3 | 
| children | 9c10e37c56f6 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 2024:fa8304b060d9 | 2025:677795f0a4e7 | 
|---|---|
| 1 #!/bin/bash | 1 #!/bin/bash | 
| 2 | 2 | 
| 3 LUAN_PIDS=$(ps ax | awk '{if($0~"[s]erver.luan"){print $1}}'); | 3 LUAN_PIDS=$(ps ax | awk '{if($0~"(backup_)?[s]erver.luan"){print $1}}'); | 
| 4 echo $LUAN_PIDS | |
| 4 kill -TERM $LUAN_PIDS; | 5 kill -TERM $LUAN_PIDS; | 
| 5 exit 0; | 6 exit 0; | 
