https://github.com/msantos/runlimit
restart intensity limits for supervised Unix processes
https://github.com/msantos/runlimit
Last synced: about 2 months ago
JSON representation
restart intensity limits for supervised Unix processes
- Host: GitHub
- URL: https://github.com/msantos/runlimit
- Owner: msantos
- License: isc
- Created: 2018-02-24T15:30:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-05-09T10:59:56.000Z (about 4 years ago)
- Last Synced: 2025-02-13T05:30:12.570Z (4 months ago)
- Language: C
- Size: 46.9 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
runlimit: restart intensity limits for supervised Unix processes
================================================================runlimit is a POC for implementing restart intensity limits for possibly
unrelated processes running under a supervisor such as daemontools'
svscan(8).Usage
-----runlimit [*options*] *path*
Example
-------# 5 runs in 60 seconds
# use a file
mkdir -p /tmp/${USER}
runlimit --intensity=5 --period=60 --file=/tmp/${USER}/state -- ls -alOptions
--------i, --intensity *count*
: number of restarts-p, --period *seconds*
: time period in seconds-n, --dryrun
: do nothing-P, --print
: print remaining time-z, --zero
: zero state-f, --file *path*
: state file-v, --verbose
: verbose modeExit Status
-----------111
: threshold reached128
: EPERM139
: ENOMEM