Rainer Gerhards
528180be08
more error handling cleanup
...
see also https://github.com/rsyslog/rsyslog/issues/78
2015-02-24 13:07:16 +01:00
Rainer Gerhards
e7e5366573
omfwd: cleanup error handling
...
see also https://github.com/rsyslog/rsyslog/issues/78
2015-02-24 13:06:34 +01:00
Rainer Gerhards
909757bb3f
ompipe: cleanup error handling
...
see also https://github.com/rsyslog/rsyslog/issues/78
2015-02-24 13:05:49 +01:00
Rainer Gerhards
597894e768
plumbing to re-instantiate the $AbortOnUncleanConfig functionality
...
This makes rsyslog abort if any error message occured during config
processing. Howerver, this is too strict, because some messages are
really just warnings (like queue sizes too low) and do not cause
an unclean config. Nevertheless, these warnings are logged as errors
currently. So a full review and cleanup of emitted error messages
is necessary.
see also https://github.com/rsyslog/rsyslog/issues/78
2015-02-24 13:05:49 +01:00
Rainer Gerhards
a4de007774
omfile: refactor error message handling
2015-02-24 13:05:49 +01:00
Rainer Gerhards
7185f7b117
Merge pull request #243 from rgerhards/udp-more-detailled-errmsg
...
imudp: more precise error message in case of send failure
2015-02-10 16:38:39 +01:00
Rainer Gerhards
cb2c0d259e
omusrmsg: re-word warning message
...
...as suggested by Otis Gospodnetic. New wording is considered
easier to understand for end users.
2015-02-06 10:39:59 +01:00
Rainer Gerhards
0caa468d94
imudp: more precise error message in case of send failure
...
It now contains the errno as numerical value in order to be
able to more precisely nail down the problem cause. The
strerror() generated message sometimes seems to be a bit
questionable.
Also refactored error processing a bit to take advantage of
the improved error reporting subsystem.
2015-02-03 17:49:37 +01:00
Rainer Gerhards
6c1eddef95
diagnostic: include build platfrom in rsyslogd -v output
2015-01-29 12:57:22 +01:00
Rainer Gerhards
4e6f06a863
cosmetic: silence compiler warning
...
The warning was invalid, as parentPipeFD was initialized under the
same condition that guarded it's use.
2015-01-09 10:43:13 +01:00
Rainer Gerhards
a5f9a2be73
remove debug left-over
2015-01-06 15:43:13 +01:00
Brad Davis
a35779cc56
Fix missing headers that clang complains about
2014-12-11 13:03:22 +01:00
Rainer Gerhards
793ec4b923
omfwd: add new "udp.senddelay" parameter
2014-12-11 12:52:28 +01:00
Rainer Gerhards
50edd8d7bd
rsyslogd: emit error message if pid file content cannot be written
2014-12-05 18:41:46 +01:00
Rainer Gerhards
0fdba55c81
bugfix: global(localHostName="xxx") wasn't always honored
...
probably a regression of the last startup changes. Also added a
test for this to the testbench.
closes https://github.com/rsyslog/rsyslog/issues/172
2014-12-04 15:27:58 +01:00
Tomas Heinrich
7a5df2a25a
Make liblogging-stdlog optional
2014-12-03 15:30:49 +01:00
Rainer Gerhards
009c514395
bugfix (kind of): write pid file earlier if privileges are dropped
...
We moved writing the pid file to after the initialization, so that
it is written only if the rsyslog process actually runs. However,
when dropping privileges, this can cause problems when rsyslog then
no longer has sufficient permission to write the pid file. This
happens frequently, as the pid file is usually stored directly under
/var/run.
A proper solution would be to create a rsyslog-user-writable directory
under /var/run, and make other scripts use that. However, this causes
grief for a lot of distros, and so we create a work-around: when
privileges are dropped, the pid file is again written a bit too early,
before privileges are dropped. This can lead to a false sense of
startup, but given the fact that this was no big problem the past
10+ years, it isn't supposed to be a big one for the coming years.
If no privileges are dropped, the pid file is still written at the
"correct" place, when rsyslog has completely been started up.
closes https://github.com/rsyslog/rsyslog/issues/169
2014-12-02 10:11:51 +01:00
Rainer Gerhards
f5a1bb3818
-C command line option was not recognized
...
regression from earlier today
2014-11-28 19:13:27 +01:00
Rainer Gerhards
e305bdad9e
deprecate -u option
2014-11-28 08:16:40 +01:00
Rainer Gerhards
537526d205
deprecated -w, -x command line options and add replacements
2014-11-27 14:54:24 +01:00
Rainer Gerhards
8afe044f07
man page: cleanup
2014-11-27 14:33:33 +01:00
Rainer Gerhards
dcf6b3f25b
deprecated -q, -Q command line params and add replacements
2014-11-27 14:30:18 +01:00
Rainer Gerhards
c518b55a67
deprecate -S command line parameter and add replacement
2014-11-27 14:15:25 +01:00
Rainer Gerhards
7902f04ea7
deprecate -A command line option
2014-11-27 13:10:37 +01:00
Rainer Gerhards
79b7c05331
manpage bugfix: -c option no longer recognized
2014-11-27 12:46:24 +01:00
Rainer Gerhards
ffac82e806
deprecate -4,-6 command line options
...
and introduce the global(net.ipprotocol) parameter as an alternative
2014-11-27 12:41:07 +01:00
Rainer Gerhards
0f6e03b86d
rsyslogd: deprecate -s, -l command line options
2014-11-27 12:09:37 +01:00
Tomas Heinrich
67e59a43c9
Amend the rsyslog.conf man page with the file sync syntax
2014-11-25 16:45:38 +01:00
Tomas Heinrich
e9e55b9c07
Correct and slightly extend the man page section on debugging
2014-11-25 16:45:38 +01:00
Rainer Gerhards
423c3ac62c
pstats: add "origin" paramter to stats records
...
see also: https://github.com/rsyslog/rsyslog/issues/119
2014-11-19 15:49:09 +01:00
Rainer Gerhards
54ea0662fc
refactor local hostname processing on startup
2014-11-14 14:59:37 +01:00
Rainer Gerhards
a361abde3c
refactor init signal handling
2014-11-13 17:24:27 +01:00
Rainer Gerhards
c3d6ac9817
cleanup startup processing
2014-11-13 17:24:27 +01:00
Rainer Gerhards
e41627fb72
cleanup: rsyslogd -e option has finally been removed
...
It is deprectated since many years.
2014-11-13 17:24:27 +01:00
Rainer Gerhards
d3e4920777
bugfix: not all files closed on auto-backgrounding startup
...
This could happen when not running under systemd. Some low-numbered
fds were not closed in that case.
To fix this, the auto-backgrounding startup sequence has been
refactored.
2014-11-13 17:24:27 +01:00
Rainer Gerhards
4ec8c0d7be
rewrite pid file handling
...
simplify code, fix bug that pid file is not checked on interactive
startup and also helps with the ASL 2.0 project
see also https://github.com/rsyslog/rsyslog/issues/82
2014-11-13 09:48:12 +01:00
Rainer Gerhards
7c2a1bee5f
cleanup: remove zpipe tool, which serves no purpose other than demo
2014-11-12 12:16:51 +01:00
Rainer Gerhards
c1f76de35c
cleanup: remove never used tool
...
... which is also available as an online tool on http://www.rsyslog.com
2014-11-12 12:14:38 +01:00
Rainer Gerhards
4cad9547dd
remove GPL contribution and place file under ASL 2.0
...
contribution was cd8c6abcc8
see also https://github.com/rsyslog/rsyslog/issues/82
2014-11-12 12:12:29 +01:00
Rainer Gerhards
6c5b6a2ec2
remove --enable-zlib configure option, we always require it
...
It's hard to envision a system without zlib, so we turn this off
closes https://github.com/rsyslog/rsyslog/issues/76
2014-10-29 18:37:13 +01:00
Rainer Gerhards
aaf87ae4ec
Merge branch 'v8-stable-backgrounding'
2014-10-22 17:12:31 +02:00
Rainer Gerhards
2cd1bd9169
Merge branch 'v7-stable-backgrounding' into v8-stable-backgrounding
...
Conflicts:
tools/rsyslogd.c
2014-10-21 11:29:52 +02:00
Rainer Gerhards
af67e7f129
fix problems with last commit, add timeout capability
...
also a bit of cleanup of no longer needed code
2014-10-21 11:23:48 +02:00
Rainer Gerhards
0bd923e552
first shot at auto-backgrounding by using a pipe instead of signals
2014-10-20 12:10:00 +02:00
Rainer Gerhards
9895ce37f2
Merge branch 'master' of git+ssh://git.adiscon.com/git/rsyslog
2014-10-08 12:50:25 +02:00
Rainer Gerhards
a407348963
refactor PRI-handling code
2014-10-08 12:50:10 +02:00
Rainer Gerhards
04a9db02d4
Merge branch 'v8-stable'
2014-10-08 10:56:11 +02:00
Rainer Gerhards
826d2557c3
Merge branch 'v7-stable' into v8-stable
2014-10-08 10:55:44 +02:00
Henri Lakk
8a5bfe4846
bugfix rsgtutil: deletion of logs at end of file was not reported
...
The verification function in rsgtutil tool did not report deletion of
whole signed blocks of lines from the end of the log file.
2014-10-07 11:55:36 +02:00
Rainer Gerhards
4def8d670b
Merge branch 'v8-stable'
2014-10-06 14:49:24 +02:00