gplessis / dotdeb-nginx

Dotdeb : Nginx
http://www.dotdeb.org/
BSD 2-Clause "Simplified" License
63 stars 31 forks source link

nginx init script should fail on config problem #59

Closed roock closed 8 years ago

roock commented 9 years ago

Currently nginx init script return 0 if the configuration files is changed, but it should return an error code if the configuration check fails (e.g. this is the same behavior as for the apache init script).

gplessis commented 8 years ago

This has been fixed with recent nginx versions by using exit $?