Merge pull request #1443 from SkynetLabs/fil/nginx-prune-reload

Hot reload nginx after pruning cache
This commit is contained in:
Matthew Sevey 2021-12-13 08:44:23 -05:00 committed by GitHub
commit 435bf1e1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1 @@
- Hot reload Nginx after pruning cache files.

View File

@ -2,5 +2,8 @@
# We execute the nginx cache pruning subscript from docker container so that we
# can run the pruning script in user crontab without sudo.
docker run --rm -v /home/user:/home/user bash /home/user/skynet-webportal/scripts/lib/nginx-prune-cache-subscript.sh
# Some cache files are deleted, but are kept open, we hot reload nginx to get
# them closed and removed from filesystem.
docker exec nginx nginx -s reload