Only restart upon close_wrie or modify.
This commit is contained in:
parent
6c798da8ae
commit
553dfaced3
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ run_nginx() {
|
|||
run_inotifywait() {
|
||||
while find "$dstdir" -type f -exec \
|
||||
sed -En '/ssl_certificate/ s/^\s*ssl_certificate(_key)? (.*);.*$/\2/p' {} \; | sort | uniq | \
|
||||
inotifywait --fromfile=-; do
|
||||
inotifywait --fromfile=- -e close_write -e modify; do
|
||||
nginx -s reload
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue