1
0
Files
angie-conv-image/scripts/angie-reload.sh
2025-06-05 11:01:19 +03:00

15 lines
300 B
Bash
Executable File

#!/bin/sh
set -ef
pid_file="${1:-/run/ngx/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}"