AF:
NF:0
PS:10
SRH:1
SFN:
DSR:
MID:<20090430134535.44d110dd@ripper.onstor.net>
CFG:
PT:0
S:andy.sharp@onstor.com
RQ:
SSV:mail.onstor.net
NSV:
SSH:
R:<yifeng.liu@onstor.com>
MAID:1
X-Sylpheed-Privacy-System:
X-Sylpheed-Sign:0
SCF:#mh/Mailbox/sent
RMID:#imap/andys@onstor.net@exch1.onstor.net/INBOX	0	2779531E7C760D4491C96305019FEEB52AC8EA3192@exch1.onstor.net
X-Sylpheed-End-Special-Headers: 1
Date: Thu, 30 Apr 2009 13:47:03 -0700
From: Andrew Sharp <andy.sharp@onstor.com>
To: YiFeng Liu <yifeng.liu@onstor.com>
Subject: Re: question about newsyslog.conf and crontab setting on the
 gateway
Message-ID: <20090430134703.41335f8e@ripper.onstor.net>
In-Reply-To: <2779531E7C760D4491C96305019FEEB52AC8EA3192@exch1.onstor.net>
References: <2779531E7C760D4491C96305019FEEB52AC8EA3192@exch1.onstor.net>
Organization: Onstor
X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.8.20; x86_64-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Thu, 30 Apr 2009 12:34:50 -0700 YiFeng Liu <yifeng.liu@onstor.com>
wrote:

> Hi Andy,
> 
> I have some questions about the settings of these two files as I was
> trying to figure out why there are gabs in the nightly uploaded elog
> files.
> 
> On our gateway, we schedule newsyslog program to run every hour and
> in the /etc/newsyslog.conf, there is a line as below,
> 
> /var/log/onstor/messages                644  5    30    24    Z
> "/bin/kill -HUP `cat /var/run/syslog.pid`; /onstor/bin/emrscron -s
> elog0 & ;"
> 
> In ALL cases newsyslog is able to zip the /var/log/onstor/messages
> file according to the specified condition and send a signal, HUP, to
> syslogd to have it restarted, but in 70% of the cases it does not
> start the "/onstor/bin/emrscron -s elog0 &". This is also the case,
> even though when I switch the order of these two jobs.
> 
> I am wondering if there is any strange behavior of newsyslog program
> that I am not aware of.

Hi YiFeng,


Sadly I don't know much about the newsyslog program, which is only on
bobcats/BSD, not on cougar/Linux.  emrscron not starting is probably a
symptom of emrscron bugginess, however.  That thing really is a poor
piece of code, sadly.  It may be starting, but deciding to exit right
away for reasons known only to it.

