Your message dated Tue, 24 May 2016 18:24:08 -0700
with message-id 
<CAL4L7=AEJoW9sFREK=h2w+o2widnfp-ruvo65bor8cev7gj...@mail.gmail.com>
and subject line 
has caused the Debian Bug report #812831,
regarding nginx-common: testconfig returns 0 even on failure
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
812831: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=812831
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: nginx-common
Version: 1.6.2-5
Severity: normal

Hello.

When I run "/etc/init.d/nginx testconfig" and there is any problem, it returns
0 as exit code, and the message "[FAIL] Testing nginx configuration: failed!".
Same result when running "service nginx configtest".

In case of problems encountered, a non-zero return value is expected.

Steps to reproduce:
1. Break you Nginx configuration somehow (I put an extra "}" in the config).
2. Run "service nginx configtest".
3. Check exit value "echo $?", it's 0 instead of 1.

This functionality is very iseful when scripting Nginx controls, so it's
suitable to use constructions like this:
"/etc/init.d/nginx testconfig && /etc/init.d/nginx reload"

It worked as expected in Debian Wheezy and I first noticed this problem
in Debian Jessie.


-- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nginx-common depends on:
ii  init-system-helpers  1.22
ii  lsb-base             4.1+Debian13+nmu1

nginx-common recommends no packages.

Versions of packages nginx-common suggests:
pn  fcgiwrap   <none>
pn  nginx-doc  <none>
pn  ssl-cert   <none>

-- Configuration Files:
/etc/nginx/sites-available/default [Errno 13] Permission denied: 
u'/etc/nginx/sites-available/default'

-- no debconf information

--- End Message ---
--- Begin Message ---
I believe that this has been resolved already. Due to the lack of
additional information, I am closing this report.

--- End Message ---

Reply via email to