[syslog-ng]logrotate question (not working with syslog-ng)...
syslog-ng@lists.balabit.hu
syslog-ng@lists.balabit.hu
Wed, 9 Apr 2003 16:32:04 -0700
Frank
I like your solution. Can I ask you a question
about it?? Why does it work???
Chris
On Tue, Apr 08, 2003 at 11:01:17AM +1000, Frank Crawford wrote:
> If you don't wish to modify the logrotate file, the other option is to
> startup syslog-ng with the '-p' option to name the pid file as syslog
> would, i.e. "syslog-ng -p /var/run/syslogd.pid".
>
> Frank
>
> On Tue, 2003-04-08 at 10:35, Richard E. Perlotto II wrote:
> > I had noticed the same thing and with the RPM that I had
> > created for syslog-ng, I modified the logrotate file
> > for the user.
> >
> >
> > Richard
> >
> > > -----Original Message-----
> > > From: syslog-ng-admin@lists.balabit.hu
> > > [mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of
> > > seberino@spawar.navy.mil
> > > Sent: Monday, April 07, 2003 4:52 PM
> > > To: Jacob Steinberger
> > > Cc: syslog-ng@lists.balabit.hu
> > > Subject: Re: [syslog-ng]logrotate question (not working with
> > > syslog-ng)...
> > >
> > >
> > > Thanks!!!
> > >
> > > I did not touch logrotate conf file. I just swapped
> > > syslog with syslog-ng and hoped nothing would break.
> > >
> > > This is a really bad gotcha because I would guess
> > > lotsa of people will make this mistake.
> > >
> > > Is there no way to make syslog-ng NOT require modification
> > > of logrotate? Do most people on this list know that?
> > > I hope so.
> > >
> > > Chris
> > >
> > >
> > > On Mon, Apr 07, 2003 at 06:27:10PM -0400, Jacob Steinberger wrote:
> > > > In your logrotate settings, did you send a restart to
> > > syslog-ng or a
> > > > HUP to it? You need to do one of the two because the INODE
> > > on the file
> > > > changes and syslog-ng isn't built to follow INODEs...
> > > >
> > > > Jacob
> > > >
> > > > > For some reason every time logrotate rotates
> > > /var/log/messages, my
> > > > > syslog-ng stops working.
> > > > >
> > > > > The permissions look ok..
> > > > >
> > > > > [office root /var/log] # ls -l mess*
> > > > > -rw------- 1 root root 0 Apr 6 04:02 messages
> > > > > -rw------- 1 root root 378135 Apr 7 15:15 messages.1
> > > > > -rw------- 1 root root 908864 Mar 31 15:50 messages.2
> > > > > -rw------- 1 root root 1795514 Mar 25 14:06 messages.3
> > > > > -rw------- 1 root root 945373 Mar 19 11:31 messages.4
> > > > > -rw------- 1 root root 7 Apr 7 14:24
> > > messages.offset
> > > > >
> > > > > Why does logrotate cause syslog-ng to not put any new stuff in
> > > > > /var/log/messages?
> > > > >
> > > > > 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
> > > > > _______________________________________
> > > > > _______________________________________________
> > > > > syslog-ng maillist - syslog-ng@lists.balabit.hu
> > > > > https://lists.balabit.hu/mailman/listinfo/syslog-ng
> > > > > Frequently asked questions at
> > > > > http://www.campin.net/syslog-ng/faq.html
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > syslog-ng maillist - syslog-ng@lists.balabit.hu
> > > > https://lists.balabit.hu/mailman/listinfo/syslog-ng
> > > > Frequently asked questions at
> > > http://www.campin.net/syslog-ng/faq.html
> > >
> > > --
> > >
> > > _______________________________________
> > >
> > > 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
> > > _______________________________________
> > > _______________________________________________
> > > syslog-ng maillist - syslog-ng@lists.balabit.hu
> > > https://lists.balabit.hu/mailman/listinfo/sysl> og-ng
> > >
> > > Frequently asked questions at
> > > http://www.campin.net/syslog-ng/faq.html
> > >
> > >
> > >
> >
> >
> > _______________________________________________
> > syslog-ng maillist - syslog-ng@lists.balabit.hu
> > https://lists.balabit.hu/mailman/listinfo/syslog-ng
> > Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
> >
> --
> ac3
> Suite G16, Bay 7, Locomotive Workshop Phone: 02 9209 4600
> Australian Technology Park Fax: 02 9209 4611
> Eveleigh NSW 1430
>
> _______________________________________________
> syslog-ng maillist - syslog-ng@lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
--
_______________________________________
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
_______________________________________