Mercurial Hosting > luan
comparison backup/stop.sh @ 2029:5fa5a7efc936
merge
| author | Violet7 |
|---|---|
| date | Thu, 30 Oct 2025 21:25:37 -0700 |
| parents | 9c10e37c56f6 |
| children | ee75b5c12272 |
comparison
equal
deleted
inserted
replaced
| 2028:2f43f84191c9 | 2029:5fa5a7efc936 |
|---|---|
| 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 kill -TERM $LUAN_PIDS; | 4 kill -TERM $LUAN_PIDS; |
| 5 exit 0; | 5 exit 0; |
