Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58216 - syslog-ng init script should do configuration check
Summary: syslog-ng init script should do configuration check
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-24 12:13 UTC by Eldad Zack (RETIRED)
Modified: 2004-08-04 18:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
syslog-ng.rc.1.13.patch (syslog-ng.rc.1.13.patch,1.28 KB, patch)
2004-07-24 12:14 UTC, Eldad Zack (RETIRED)
Details | Diff
syslog-ng.init.1.13.patch (syslog-ng.init.1.13.patch,639 bytes, patch)
2004-07-25 05:26 UTC, Eldad Zack (RETIRED)
Details | Diff
syslog-ng.init.1.13.patch (syslog-ng.init.1.13.patch,639 bytes, patch)
2004-07-25 05:27 UTC, Eldad Zack (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eldad Zack (RETIRED) gentoo-dev 2004-07-24 12:13:18 UTC
syslog-ng -s (configfile) provide with a configuration check.
Comment 1 Eldad Zack (RETIRED) gentoo-dev 2004-07-24 12:14:54 UTC
Created attachment 36085 [details, diff]
syslog-ng.rc.1.13.patch

Added the syslog-ng -s check, both with reload and start.

I've also added SYSLOGNG_CONF instead of /etc/syslog-ng/syslog-ng.conf
everywhere.
Comment 2 Eldad Zack (RETIRED) gentoo-dev 2004-07-25 05:26:47 UTC
Created attachment 36109 [details, diff]
syslog-ng.init.1.13.patch

Learned the hard way that using variables messes with depcache.
This is a much smaller patch.
Comment 3 Eldad Zack (RETIRED) gentoo-dev 2004-07-25 05:27:59 UTC
Created attachment 36110 [details, diff]
syslog-ng.init.1.13.patch

former patch was reversed.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2004-07-25 17:36:13 UTC
So.... Explain to me what this patch actually buys us over the current behavior please?
Comment 5 Eldad Zack (RETIRED) gentoo-dev 2004-07-25 23:07:22 UTC
suppose you misconfigure syslog-ng and try to restart it - it will stop but won't start. 

Also, if it fails to start, it tells you why.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2004-08-04 18:05:51 UTC
Added to CVS.  No rev bump or anything since this is pretty minor.  Thanks for the bug report and patch.