15 lines
302 B
Bash
Executable File
15 lines
302 B
Bash
Executable File
#!/bin/sh
|
|
set -ef
|
|
|
|
pid_file="${1:-/run/angie/angie.pid}"
|
|
[ -f "${pid_file}" ] || {
|
|
echo "Angie is not running? (${pid_file} not found)"
|
|
exit 0
|
|
}
|
|
[ -s "${pid_file}" ] || {
|
|
echo "Angie is not running? (${pid_file} is empty)"
|
|
exit 1
|
|
}
|
|
pid=$(cat "${pid_file}") || exit 1
|
|
|
|
exec env kill -SIGHUP "${pid}" |