Skip to content

Commit

Permalink
Add make target nginx-send-hup to tell nginx to reload config
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed May 20, 2024
1 parent 6d324ed commit 10ee1ae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deployment/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ include logrotate.make
nginx-send-usr1:
docker compose exec -T frontend /bin/bash -c 'kill -USR1 `pgrep -f "nginx: [m]aster"`'

# Rule to send nginx HUP signal to reload configuration
nginx-send-hup:
docker compose kill --signal=SIGHUP frontend

PYTHON := "$(shell which python3 2>/dev/null || which python 2>/dev/null || which python2 2>/dev/null || echo "{python|python3|python2} not found")"
PYTHONPATH := $(shell $(PYTHON) -c "import sys; print(':'.join(sys.path[1:]))")
/etc/cron.daily/pkgserver: conf/cron.restart.conf
Expand Down
4 changes: 4 additions & 0 deletions loadbalancer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ include ../deployment/logrotate.make
nginx-send-usr1:
docker compose exec -T loadbalancer /bin/bash -c 'kill -USR1 `pgrep -f "nginx: [m]aster"`'

# Rule to send nginx HUP signal to reload configuration
nginx-send-hup:
docker compose kill --signal=SIGHUP loadbalancer

stop-watchtower:
docker compose stop watchtower

Expand Down

0 comments on commit 10ee1ae

Please sign in to comment.