You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current service_restart command to do a test of the configuration before restarting nginx is tied too much to the init system in use and is apparently causing some issues/confusion (#181, #150).
nginx has had the -t switch since at least 0.3.3 released in October 2005. Consider changing
Or, use a custom exec to run nginx -t which the service type will subscribe to. This will likely be cleaner as the restart command won't override the appropriate one for the init system in use.
I'm happy to work on this, but need to know the fully qualified paths for the nginx binary on each OS and what the preferred approach would be.
If we identify this for only a selection of OSs then I'll define the command for those and use /etc/init.d/nginx configtest as the default so at least it improves things on the OSs we know about.
The text was updated successfully, but these errors were encountered:
The current service_restart command to do a test of the configuration before restarting nginx is tied too much to the init system in use and is apparently causing some issues/confusion (#181, #150).
nginx has had the
-t
switch since at least 0.3.3 released in October 2005. Consider changing$nx_service_restart = '/etc/init.d/nginx configtest && /etc/init.d/nginx restart'
to
$nx_service_restart = 'nginx -t && /etc/init.d/nginx restart'
Or, use a custom
exec
to runnginx -t
which the service type will subscribe to. This will likely be cleaner as the restart command won't override the appropriate one for the init system in use.I'm happy to work on this, but need to know the fully qualified paths for the nginx binary on each OS and what the preferred approach would be.
If we identify this for only a selection of OSs then I'll define the command for those and use
/etc/init.d/nginx configtest
as the default so at least it improves things on the OSs we know about.The text was updated successfully, but these errors were encountered: