Public bug reported:

Copied from the Debian bug (https://bugs.debian.org/cgi-
bin/bugreport.cgi?bug=788573):

Many actions offered by the initscript do not preserve or give the
proper return code. One notable example is the "configtest" that always
returns 0 even when problems are detected:

 echo "invalid" >> /etc/nging/nginx.conf
 service nginx configtest
 echo $?

Should return 1 but returns 0 instead.

** Affects: nginx (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: nginx (Debian)
     Importance: Unknown
         Status: Unknown

** Patch added: "Same patch as the one attached to the Debian bug"
   
https://bugs.launchpad.net/bugs/1464770/+attachment/4414092/+files/nginx-common.nginx.init.patch

** Also affects: nginx
   Importance: Undecided
       Status: New

** No longer affects: nginx

** Bug watch added: Debian Bug tracker #788573
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788573

** Also affects: nginx (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788573
   Importance: Unknown
       Status: Unknown

-- 
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/1464770

Title:
  initscript doesn't preserve return code

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/1464770/+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

Reply via email to