annotate backup/stop.sh.orig @ 2034:d718511fc69f acme-tiny

Begin work on moving to tiny-acme.
author Violet7
date Tue, 04 Nov 2025 20:28:50 -0800
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2034
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
1 #!/bin/bash
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
2
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
3 LUAN_PIDS=$(ps ax | awk '/[s]erver.luan/ {print $1}')
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
4
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
5 if [ -n "$LUAN_PIDS" ]; then
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
6 echo "Killing luan processes: $LUAN_PIDS"
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
7 kill -TERM $LUAN_PIDS
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
8 else
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
9 echo "Info: No luan processes found, continuing."
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
10 fi
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
11
d718511fc69f Begin work on moving to tiny-acme.
Violet7
parents:
diff changeset
12 exit 0