Mercurial Hosting > luan
comparison backup/stop.sh.orig @ 2036:2740f8a9ba3a acme-tiny tip
First test prototype (also convert spaces to tabs and remove *.orig files)
| author | Violet7 |
|---|---|
| date | Wed, 05 Nov 2025 21:49:39 -0800 |
| parents | 00bbfef1a86b |
| children |
comparison
equal
deleted
inserted
replaced
| 2035:00bbfef1a86b | 2036:2740f8a9ba3a |
|---|---|
| 1 #!/bin/bash | |
| 2 | |
| 3 LUAN_PIDS=$(ps ax | awk '/[s]erver.luan/ {print $1}') | |
| 4 | |
| 5 if [ -n "$LUAN_PIDS" ]; then | |
| 6 echo "Killing luan processes: $LUAN_PIDS" | |
| 7 kill -TERM $LUAN_PIDS | |
| 8 else | |
| 9 echo "Info: No luan processes found, continuing." | |
| 10 fi | |
| 11 | |
| 12 exit 0 |
