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
- Host: GitHub
- URL: https://github.com/nowisesys/procmon
- Owner: nowisesys
- License: gpl-3.0
- Created: 2019-01-28T19:23:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-28T21:15:27.000Z (over 7 years ago)
- Last Synced: 2025-02-16T08:27:30.246Z (over 1 year ago)
- Topics: process-manager
- Language: C
- Size: 144 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
- Authors: AUTHORS
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