Hi All,

Working on Red Hat 7.2 and AS2.1
We have added a call to an executable in rc.sysinit. The exact location of
calling this is just before the LVM initialization step. We need to do this
because of our product requirement.
The executable logs messages to system log using the C function "syslog". It
has a number of syslog calls. However, after the systems startup, when we
look at the /var/log/messages file, it is observed that only alternate calls
to syslog from the executable are logged into the system log.

For example, in our C file, if we have something like the following:

syslog(LOG_INFO, "First message");
syslog(LOG_INFO, "Second message");
some code ....
syslog(LOG_INFO, "Third message");
syslog(LOG_INFO, "Fourth message");

However, in /var/log/messages, we find only "First message" and the "Third
message".

Wondering what could be the problem.

And running the executable from command line, otherwise (other than system
startup), puts all the four messages in /var/log/message.

Could anyone put some light on this???

Thanks and Regards,
Bharavi Oak.


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to