-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joachim Schrod wrote:
> G T Smith wrote:
>>
>>> cron logs via syslog; there should be log records about the start of
>>> each job in /var/log/messages. The exception is when your crontab line
>>> starts with "-" (a hyphen), then job start logging is turned off. (In
>>
>> Oddly this is not happening on my system, the hyphen is there but job
>> start logging is still being performed.
> 
> Does
> 
>     grep '/usr/sbin/cron.*run-crons' /var/log/messages

There are entries generated by both /usr/bin/cron and run-crons in my
message log. I have using a modified run-crons under 9.3 and 10.2 (never
went for 10.0 as I rarely touch *.0 releases as I prefer someone else to
find the bugs at that stage :-), unfortunately cannot afford to crock my
machines too badly and I have some bad experiences in the past ) I think
under 9.3 crond logged something, but I would have  dig out old logs to
check whether memory faulty. I prefer to monitor with mail messages as
it is bit easier to flag when something is breaking, usually only check
in message log when expected cron mail does a disappearing act.

> 
> really shows that cron logs each start of run-crons?
> Which SUSE version is this?
> 
>> The run-crons script explicitly
>> sends information to the syslog daemon overriding the above setting, but
>> successful job reporting is controlled by the $SYSLOG_ON_NO_ERROR
>> variable.

To be honest did not notice this until a day or so ago. It also does not
appear in the appropriate YaST sysconfig entry... Having a look at the
/etc/sysconfig/cron file is in my things to do list, as some things are
in one systems entries but not in the others. Now there is the
possibility that this variable was explicitly set when one machine was
upgraded from 9.3 to 10.2...

> 
> This variable does not exist in 10.0, which Mohamed uses. There,
> run-crons only logs errors (with logger).
> 
>> It looks as
>> if the majority of the standard SuSE scripts explicitly log their status.
> 

That did not come out quite the way I meant :-) , there are some scripts
that seem to return additional info in the log.


> I have to admit that I don't understand that sentence. At my 10.0
> installation, execution of the cron.daily scripts is _not_ logged. All
> other cron jobs are logged by cron, and not by the scripts themselves.
> Is this different in your SUSE installation?
> 
>     Joachim
> 


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFGQgI4asN0sSnLmgIRAjRnAJ9gN6uiZPWsUDPlPRh/eMyKQjdb3wCfX7JP
BvVXxcT6ClYKD9LEHn8SD2Q=
=gfPq
-----END PGP SIGNATURE-----
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to