Limit resources for a given program
frank2 at fjl.co.uk
Thu Jan 25 11:13:01 UTC 2018
On 2018-01-23 05:40, Olivier wrote:
> Is there a way, in FreeBSD, to limit the clocktime for a given command?
> I use LibreOffice to automatically convert many types of documents to
> PDF. When it is an HTML document with external links, it will run
> indefinitely, trying to access the external resources. It will not use
> much CPU but mostly sits idled, so limits(8) -t is not the solution,
> is rctl(8) that needs a process ID (but I only have the command name)
> a user ID (but I don't want to limit a user, just that program).
I'm a bit confused about what your problem is? What exactly do you mean
by "clocktime" - do you mean wall time (i.e. time elapsed)? You say it's
not using a lot of resource, so what's the problem?
Or do you just want to kill it when it gets stuck?
More information about the freebsd-questions