initial commit
This commit is contained in:
15
scripts/angie-reload.sh
Executable file
15
scripts/angie-reload.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/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}"
|
Reference in New Issue
Block a user