1
0
angie-conv-image/scripts/angie-reload.sh

15 lines
302 B
Bash
Raw Normal View History

2024-09-17 14:11:00 +03:00
#!/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}"