use os.kill instead of signal.signal which sets up a handler instead
Restart limits should not be enabled if maxR is not set