>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. I know this is not much, but I have noticed that messages are not logged to /var/log/messages in chronological order during system startup. It is possible, depending on your system configuration and the number of messages generated during system startup, that some of your messages are being rolled over into /var/log/messages.1 or similar. Also if you have not already tried searching for your messages with grep, then that is worth a shot too. Matthew Richards -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list