An open API service indexing awesome lists of open source software.

https://github.com/nowisesys/procmon

Runaway process monitor
https://github.com/nowisesys/procmon

process-manager

Last synced: 12 months ago
JSON representation

Runaway process monitor

Awesome Lists containing this project

README

          

PROCMON - RUNAWAY PROCESS MONITOR

** GENERAL:

This application is used to scan the table of running processes and killing
those that has gone to lunch or exceeded the given CPU-time limit.

It is etiher runned periodical in single shot mode from crontab or command
line or forked into the background as a daemon process (using the -b option).

** REQUIREMENTS:

The procps package must be installed, along with headers and libs to
compile this application.

** DAEMON:

The process can be controlled by sending signals when running as daemon.
Sending SIGKILL or SIGTERM will ask the daemon to exit. Sending SIGHUP
will force the process to immediate begin a scanning of running processes.

** SIGNAL & SCRIPT:

The default action is to send a signal (SIGTERM) to each process that exceeds
the given CPU-time limit. It is also possible to define a script to run in
addition to signaling. The script gets executed thru system(3) with PID and
command name as arguments.

// Anders Lövgren, 2011-11-15