Quantcast
Channel: Zammad - Community - Latest posts
Viewing all articles
Browse latest Browse all 6844

Prevent/improve postinstall script to not restart nginx, but rather reload its config

$
0
0
  1. What is your original issue/pain point you want to solve?

The postinstall package script restarts nginx by restarting it directly:

  echo "# Restarting webserver ${WEBSERVER_CMD}"
  ${INIT_CMD} restart ${WEBSERVER_CMD}

Nginx has a better reloading method, nginx -s reload, see Controlling NGINX Processes at Runtime | NGINX Documentation

  1. Which are one or two concrete situations where this problem hurts the most?

Other services running on the same service having its connections severed during a package upgrade.

  1. Why is it not solvable with the Zammad standard?

It’s an issue with how the script restarts nginx.

  1. What is your expectation/what do you want to achieve?

If possible, reload the nginx config via nginx -s reload or give some other control of this behaviour, possibly even allowing it to be disabled so one can manually reload nginx as needed.


Viewing all articles
Browse latest Browse all 6844

Trending Articles