hi all, today, the 2.7.4 version was released which contains the following improvements over the previous version:
* added support for the 'owritecl' action. * added support for the --childterm, --nochildterm, --rwfifo and --norwfifo command line options. * starting from this version, SEC_LOGROTATE internal event is generated on the reception of SIGUSR2. * starting from this version, the --notail option implies reading from input pipe until all writers have closed the pipe (in previous versions, --notail closed the pipe when no data were available for reading) One fairly interesting change is the changed semantics of --notail for pipes. In previous versions, --notail simply meant that SEC polled the pipe with select() and closed it immediately if no data were reported to be available, even when the writer had not closed the pipe and was potentially capable of writing more data. As such, the previous semantics was pretty much useless. Therefore, --notail made sense for regular files only, and was used for quick scanning of already existing files. The new semantics makes --notail much more useful, since now it can be employed for facilitating connections with other applications, most notably leading syslog servers. The following FAQ entries provide integration examples for rsyslog and syslog-ng: http://simple-evcorr.sourceforge.net/FAQ.html#2 http://simple-evcorr.sourceforge.net/FAQ.html#3 Also, one might wonder why SEC_LOGROTATE internal event and 'owritecl' actions were needed. There is one example in the man page which illustrates their potential use: http://simple-evcorr.sourceforge.net/man.html#lbAZ In addition, 'owritecl' implements the semantics similar to the 'write' action of 2.6 and older major releases. In a nutshell, unlike 'write' it does not keep the output file open, but opens and closes it at each write. It is useful for writing to files if one wants to implement crude log rotation (remove without signalling other processes). But also, it can be used for shutting down external processes which are listening on named pipes (demonstrated by the man page example above). kind regards, risto ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Simple-evcorr-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/simple-evcorr-users
