Pipelog allows for rotating or clearing the log of a running process by piping it through an intermediate which responds to external signals. Without such an intermediate, replacing, moving or deleting the log would make it impossible to resume accumulating output because the process would continue to use a filehandle to an old inode; some applications (such as syslogd) implement signal handling themselves so that another utility (such as logrotate) can be used to move their log(s), and then signal the application to re-open — but this is often not the case.

On receipt of SIGUSR1, pipelog will rotate the log file to log file .1, and move any existing .1 to .2, etc, while continuing to buffer input. On receipt of SIGUSR2, it will delete the current log file and open a new one with the same name, effectively clearing the contents. It can also execute an arbitrary process in between opening the new log and beginning to write to it, again while buffering input.

Features

  • Written in C using standard POSIX extensions, should work in any unix/linux/BSD environment.

Project Activity

See All Activity >

Follow pipelog

pipelog Web Site

You Might Also Like
Houzz Pro is the #1 business management software for home construction and design professionals. Icon
Houzz Pro is the #1 business management software for home construction and design professionals.

Get the all-in-one tool for marketing, project and client management built specifically for remodeling and design professionals.

Get an all-in-one solution that spans the full customer lifecycle, including marketing, CRM, estimation & proposal building, project management, a 3D Floor Plan builder, an online invoicing and payment portal, as well as a client portal and collaboration tools. Start a free trial today to see why thousands of Pros run their business on Houzz Pro. Plans available for all business sizes.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of pipelog!

Additional Project Details

Registered

2014-04-28