#
f65917cd |
| 21-Dec-2009 |
Xin LI <delphij@FreeBSD.org> |
Don't consider non-existence of a PID file an error, we should be able to proceed anyway as this most likely mean that the process has been terminated.
PR: bin/140397 Submitted by: Dan Lukes <dan o
Don't consider non-existence of a PID file an error, we should be able to proceed anyway as this most likely mean that the process has been terminated.
PR: bin/140397 Submitted by: Dan Lukes <dan obluda cz> MFC after: 1 month
show more ...
|
Revision tags: release/8.0.0_cvs, release/8.0.0, release/7.2.0_cvs, release/7.2.0, release/7.1.0_cvs, release/7.1.0, release/6.4.0_cvs, release/6.4.0, release/7.0.0_cvs, release/7.0.0 |
|
#
874f1f4e |
| 30-Jan-2008 |
Xin LI <delphij@FreeBSD.org> |
Fix two typos.
|
Revision tags: release/6.3.0_cvs, release/6.3.0, release/6.2.0_cvs, release/6.2.0 |
|
#
ccb43d66 |
| 17-Aug-2006 |
Xin LI <delphij@FreeBSD.org> |
Use same signedness for i and matched_c. This should make newsyslog(8) WARNS=6 clean.
|
#
7697c5e4 |
| 22-Jul-2006 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Remove mention of the `W' flag, which has been turned to no-op by the neworder change. Keep the option in a config file parser, to not violate POLA.
MFC after: 2 weeks
|
#
656f7730 |
| 28-Jun-2006 |
Garance A Drosehn <gad@FreeBSD.org> |
Remove the last three calls to strncpy(), two of which would have been bugs if the source had ever been too big for the destination.
MFC after: 3 weeks
|
#
a04de8fa |
| 27-Jun-2006 |
Garance A Drosehn <gad@FreeBSD.org> |
Remove the "oldorder" processing. The "neworder" processing has been the default for two years now, without any problems reported.
MFC after: 3 weeks
|
Revision tags: release/5.5.0_cvs, release/5.5.0, release/6.1.0_cvs, release/6.1.0 |
|
#
616270cb |
| 20-Jan-2006 |
Garance A Drosehn <gad@FreeBSD.org> |
Improve error-handling related to the fork() done to compress files after they have been rotated. Among other things, use warnx() instead of warn() for some messages where the value if errno is irre
Improve error-handling related to the fork() done to compress files after they have been rotated. Among other things, use warnx() instead of warn() for some messages where the value if errno is irrelevant to the problem being reported.
MFC after: 5 days
show more ...
|
#
4fd87db9 |
| 01-Dec-2005 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Fix logic error which causes <null> to be printed instead of the actual file name in error message.
MFC After: 2 weeks
|
Revision tags: release/6.0.0_cvs, release/6.0.0, release/5.4.0_cvs, release/5.4.0 |
|
#
deea909a |
| 03-Mar-2005 |
Brooks Davis <brooks@FreeBSD.org> |
Add the -N option to not rotate any files. This is to be used in cojunction with -C and is used by /etc/rc.d/newsyslog.
I forgot that this was in my perforce tree and not my running system and thus
Add the -N option to not rotate any files. This is to be used in cojunction with -C and is used by /etc/rc.d/newsyslog.
I forgot that this was in my perforce tree and not my running system and thus committed a non-working newsyslog script.
Reported by: des Pointy hat: brooks
show more ...
|
Revision tags: release/4.11.0_cvs, release/4.11.0 |
|
#
9e3daa8d |
| 04-Jan-2005 |
Xin LI <delphij@FreeBSD.org> |
Because the `permission' field in conf_entry is intended to be used as parameter 2 in chmod(2), which is a mode_t (and in turn a __uint_16_t), it's more likely that it should be defined as an unsigne
Because the `permission' field in conf_entry is intended to be used as parameter 2 in chmod(2), which is a mode_t (and in turn a __uint_16_t), it's more likely that it should be defined as an unsigned variable.
This commit should make newsyslog WARNS=6 clean, but don't bump the knob until I have a universe build.
MFC After: 1 month
show more ...
|
Revision tags: release/5.3.0_cvs, release/5.3.0 |
|
#
5616e1bc |
| 06-Oct-2004 |
Brooks Davis <brooks@FreeBSD.org> |
Mention "-d directory" in usage().
Pointy hat to: brooks
|
#
59fdf30f |
| 06-Oct-2004 |
Brooks Davis <brooks@FreeBSD.org> |
Don't prepend the directory specified by -d when the file is a relative path. Doing so makes no sense. I'm not sure allowing relative paths makes sense either, but I'm not going to break that now.
|
#
842ba60e |
| 05-Oct-2004 |
Brooks Davis <brooks@FreeBSD.org> |
Add a new -d argument which is used to specify an alternate root for log files similar to DESTDIR in the BSD make process. This only affects log file paths not config file (-f) or archive directory
Add a new -d argument which is used to specify an alternate root for log files similar to DESTDIR in the BSD make process. This only affects log file paths not config file (-f) or archive directory (-a) paths.
show more ...
|
#
ea690222 |
| 04-Jul-2004 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Nothing says that /var/log can't be not a directory but a symbolic link to a directory. Therefore, use stat(2) instead of lstat(2) to check if /var/log exists.
MFC after: 7 days
|
#
fbb4e16a |
| 20-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Fix the format-string in a call to err(). It was causing a warning if compiled on 4.x-stable.
|
#
5ff798ca |
| 19-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Fix the check for a "duplicate filename to compress", so that we're checking the *filename* and not the pid_file(!). Stupid brain-fault on my part. This could cause a segfault under -neworder if ne
Fix the check for a "duplicate filename to compress", so that we're checking the *filename* and not the pid_file(!). Stupid brain-fault on my part. This could cause a segfault under -neworder if newsyslog had to rotate multiple files, and later ones had specifed the 'N' flag.
Bug first reported by: le MFC after: 3 days
show more ...
|
#
c8fd7c32 |
| 12-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Switch to using the "neworder" for rotating log files, by default. The main advantage of this is that daemon's are only signalled once per run, instead of once for each file that is rotated.
MFC af
Switch to using the "neworder" for rotating log files, by default. The main advantage of this is that daemon's are only signalled once per run, instead of once for each file that is rotated.
MFC after: 2 weeks
show more ...
|
#
4559c181 |
| 07-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Add an "oldorder" option, so that when the default changes to "neworder", people have a way to drop back to the previous logic.
MFC after: 13 days
|
#
aa6904eb |
| 07-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
In "neworder" processing, reduce the delay between signals to separate processes, and balance that by adding a 10-second delay after all the processes have been signaled. Also improvement a few mess
In "neworder" processing, reduce the delay between signals to separate processes, and balance that by adding a 10-second delay after all the processes have been signaled. Also improvement a few messages printed with `-n' or `-v' processing (mostly signal-related messages).
MFC after: 13 days
show more ...
|
#
7f5b34d7 |
| 07-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Major re-ordering of the steps that newsyslog will use when processing files to rotate. The new order will first rotate all files that need to be rotated, and then send a single signal to each proce
Major re-ordering of the steps that newsyslog will use when processing files to rotate. The new order will first rotate all files that need to be rotated, and then send a single signal to each process which needs to be signaled, and finally it will compress all the files which were rotated.
This means daemons will be signaled once per run of newsyslog, instead of once per file rotated. Also, files will be compressed in order of file-size (smallest to largest). Also, it waits for each file to be completely compressed before starting the next one (effectively as if the 'w' flag is specified for all entries in newsyslog.conf). This avoids the situation of having 10 gzip's going at the same time (each with a log.0 and a log.0.gz file active), and it also means that file attributes can be reliably set on files after they are compressed.
NOTE: This commit does define NEWORDER (which you could get rid of if you really don't trust this), but it does not flip the "-D neworder" switch. So, at the moment none of these changes happen unless you request them (perhaps by adding '<debug> neworder' in newsyslog.conf).
PR: bin/25070 inspired some parts of this Submitted by: parts from bin/25070 done by Helge Oldach MFC after: 14 days
show more ...
|
#
9d780a43 |
| 07-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
A variety of minor changes. Allow users to set a debugging option via the newsyslog.conf file. Rename one size-related variable, and move another one from the stack into conf_entry. Add a routine
A variety of minor changes. Allow users to set a debugging option via the newsyslog.conf file. Rename one size-related variable, and move another one from the stack into conf_entry. Add a routine to change file-attributes (chown, chmod, chflags), instead of having several places doing the same sequence of system-calls. A few cosmetic/style changes.
These should not effect any users. Most of these probably look pointless, but they are the "insignificant parts" of a much larger update that I'll be committing soon. Doing these as a separate update should make that update easier to read.
MFC after: 14 days
show more ...
|
#
d7dc92dc |
| 04-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Style-istic fix to a number of #define's that were not followed by a tab...
MFC after: 16 days
|
#
55bf17e9 |
| 04-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Add a 'D' flag that can be specified on entries in newsyslog.conf. If specified, the matching log files will have the NODUMP flag set on them after they are created.
Submitted by: Sean Eric Fagan MF
Add a 'D' flag that can be specified on entries in newsyslog.conf. If specified, the matching log files will have the NODUMP flag set on them after they are created.
Submitted by: Sean Eric Fagan MFC after: 16 days
show more ...
|
#
b2cd4263 |
| 04-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Change standard processing to use the newer createlog() routine that had been written some months ago for other processing. This should get rid of a few subtle situations where an existing log file
Change standard processing to use the newer createlog() routine that had been written some months ago for other processing. This should get rid of a few subtle situations where an existing log file would not exist (for a short time) while it is being rotated.
MFC after: 16 days
show more ...
|
#
efdb85c8 |
| 02-Jun-2004 |
Garance A Drosehn <gad@FreeBSD.org> |
Improved versions of the is*ch() and tolowerch() macros that I like to use.
|