[Bug 1413555] [NEW] init script fails with error code 0 when configuration test doesn't pass
Stratos Moros
stmoros at gmail.com
Thu Jan 22 11:08:33 UTC 2015
Public bug reported:
Ubuntu version: Ubuntu 14.04.1 LTS
Nginx version: 1.4.6-1ubuntu3.1
Steps to reproduce:
1. install nginx
2. add a configuration error to nginx's configuration (echo error > /etc/nginx/nginx.conf)
3. reload nginx and check its exit code (/etc/init.d/nginx reload; echo $?)
What should happen:
Nginx should fail to reload with a non zero exit code.
What happens instead
Nginx does not reload, but the init script's exit code is 0. This
confuses certain configuration management tools that rely on init
scripts' exit codes to determine success.
** Affects: nginx (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nginx in Ubuntu.
https://bugs.launchpad.net/bugs/1413555
Title:
init script fails with error code 0 when configuration test doesn't
pass
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1413555/+subscriptions
More information about the Ubuntu-server-bugs
mailing list