[Bug 1413555] [NEW] init script fails with error code 0 when configuration test doesn't pass

2015-01-22 Thread Stratos Moros
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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1413555] [NEW] init script fails with error code 0 when configuration test doesn't pass

2015-01-22 Thread Stratos Moros
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
Bugs, which is subscribed to 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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs