Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#20993 - [nginx] check configuration

Attached to Project: Community Packages
Opened by Yanchenko Igor (ig0r) - Wednesday, 29 September 2010, 20:00 GMT
Last edited by Sergej Pupykin (sergej) - Monday, 04 October 2010, 08:51 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sergej Pupykin (sergej)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

When I run "/etc/rc.d/nginx restart", nginx stopping, then check config, then starting. Must be - check config, then stopping, then starting (if configuration is not valid nginx must not be stopped).

:: Stopping Nginx [DONE]
:: Checking configuration [BUSY]
[emerg]: unexpected "}" in /etc/nginx/conf/nginx.conf:118
configuration file /etc/nginx/conf/nginx.conf test failed
[FAIL]


And to suppress message "the configuration file /etc/nginx/conf/nginx.conf syntax is ok" nginx have option "-q".

:: Stopping Nginx [DONE]
:: Checking configuration [BUSY]
the configuration file /etc/nginx/conf/nginx.conf syntax is ok
configuration file /etc/nginx/conf/nginx.conf test is successful
[DONE]
:: Starting Nginx [DONE]


Thank you. sorry for my english.
This task depends upon

Closed by  Sergej Pupykin (sergej)
Monday, 04 October 2010, 08:51 GMT
Reason for closing:  Fixed
Additional comments about closing:  fixed in svn, will appear in next build
Comment by Sergej Pupykin (sergej) - Thursday, 30 September 2010, 12:52 GMT
Probably you need

/etc/rc.d/nginx reload

it firstly checks config, then reloads it.
Comment by Yanchenko Igor (ig0r) - Thursday, 30 September 2010, 15:16 GMT
ok, but when I upgrade nginx, and reload it, nginx master procces is stil old binary.
Comment by Sergej Pupykin (sergej) - Thursday, 30 September 2010, 15:29 GMT
there is

/etc/rc.d/nginx check

also
Comment by Yanchenko Igor (ig0r) - Thursday, 30 September 2010, 15:38 GMT
ok, I know about this, but I think is a good idea to check config when restart.
Comment by Sergej Pupykin (sergej) - Friday, 01 October 2010, 09:15 GMT
Perhaps I fix it adding careless_start target...
Comment by Yanchenko Igor (ig0r) - Sunday, 03 October 2010, 09:10 GMT
what about suppress message "the configuration file /etc/nginx/conf/nginx.conf syntax is ok" with option "-q".

Loading...