[syslog-ng]logrotate question (not working with syslog-ng)...
syslog-ng@lists.balabit.hu
syslog-ng@lists.balabit.hu
Thu, 10 Apr 2003 22:37:33 -0700
Thanks.
Chris
On Fri, Apr 11, 2003 at 11:05:08AM +1000, Frank Crawford wrote:
> Chris,
> Check that /etc/logrotate.conf has the line "include /etc/logrotate.d",
> which forces the include all files in the directory '/etc/logrotate.d'.
> That is the standard configuration for Red Hat for sometime now. I
> expect it to be so for other Linux distro's that implement the logrotate
> package.
>
> As to how it knows, it just runs every file in the logrotate.d
> directory (or more correctly includes them in the conf and then runs
> that). The match is made on the log filenames, and if they match then
> the block below is executed. The name of the config file you added
> doesn't matter to logrotate but it makes it a lot easier for humans if
> it does relate to the package or some other obvious standard.
>
> Frank
>
> On Fri, 2003-04-11 at 10:52, seberino@spawar.navy.mil wrote:
> > Frank
> >
> > Can I ask you 1 last question? :)
> >
> > I made a /etc/logrotate.d/syslog-ng and erased
> > /etc/logrotate.d/syslog.
> >
> > The only difference is the new guy works off
> > /var/run/syslog-ng.pid rather than /var/run/syslog.pid.
> >
> > Will logrotate run this file when it rotates syslog-ng files???
> >
> > How does logrotate know to run this file?? I assume it
> > expects a file whose name is the name of the daemon???
> >
> > (If I called it /etc/logrotate.d/charlie
> > it prolly would not have worked right?)
> >
> > Chris
> >
> >
> > On Thu, Apr 10, 2003 at 04:45:16PM +1000, Frank Crawford wrote:
> > > Chris,
> > > Yes, as long as there was only one file that referred to the log
> > > files. Otherwise both would try to rotate them and confuse most people
> > > later.
> > >
> > > Frank
> > >
> > > On Thu, 2003-04-10 at 16:40, seberino@spawar.navy.mil wrote:
> > > > Frank
> > > >
> > > > Thanks. From your info it sounds like it would make more
> > > > sense to just replace /etc/logrotate.d/syslog with
> > > > a modified version *or* /etc/logrotate.d/syslog-ng if that
> > > > would work.
> > > >
> > > > Chris
> > > ....
> > > > _______________________________________
> > > >
> > > > Dr. Christian Seberino
> > > > SPAWAR Systems Center San Diego
> > > > Code 2872
> > > > 49258 Mills Street, Room 158
> > > > San Diego, CA 92152-5385
> > > > U.S.A.
> > > >
> > > > Phone: (619) 553-9973
> > > > Fax: (619) 553-6521
> > > > Email: seberino@spawar.navy.mil
> > > > _______________________________________
> > > --
> > > ac3
> > > Suite G16, Bay 7, Locomotive Workshop Phone: 02 9209 4600
> > > Australian Technology Park Fax: 02 9209 4611
> > > Eveleigh NSW 1430
> >
> > --
> > _______________________________________
> >
> > Dr. Christian Seberino
> > SPAWAR Systems Center San Diego
> > Code 2872
> > 49258 Mills Street, Room 158
> > San Diego, CA 92152-5385
> > U.S.A.
> >
> > Phone: (619) 553-9973
> > Fax: (619) 553-6521
> > Email: seberino@spawar.navy.mil
> > _______________________________________
> --
> ac3
> Suite G16, Bay 7, Locomotive Workshop Phone: 02 9209 4600
> Australian Technology Park Fax: 02 9209 4611
> Eveleigh NSW 1430
--
_______________________________________
Dr. Christian Seberino
SPAWAR Systems Center San Diego
Code 2872
49258 Mills Street, Room 158
San Diego, CA 92152-5385
U.S.A.
Phone: (619) 553-9973
Fax: (619) 553-6521
Email: seberino@spawar.navy.mil
_______________________________________