Saferun
| Name | Saferun |
| Version | 0.5 |
| State | stable |
| Last Update | 05 Oct 2001 |
| Download | Tarball source |
Saferun runs a specified program, and applies certain limits to it. Currently the only limit that can be set is the allowed running time.
One of my most useful programs. This little beauty is great for those automated scripts (startup scripts, ip-up scripts, cronjobs, etc). Previously some of the programs my scripts called would hang for unknown reasons, this lead to processes just sitting in the process tree and never dying.
Example:
saferun -t 10 annoying_app_that_hangs arg1 arg2
The above will run annoying_app_that_hangs for no more than 10 seconds. After 10 seconds, it will try terminating (SIGTERM) it. If it still hasn't died after another 10 seconds, it will kill (SIGKILL) it.
No more ps ax and finding 10 ip-up scripts all hung because of one of the programs called from inside it.

