S6-SOFTLIMIT(8)

NAME
s6-softlimit - change process limits, then execute into another program

SYNOPSIS
s6-softlimit [-a allmem] [-c core] [-d data] [-f fsize] [-l lock] [-m mem] [-o ofiles] [-p proc] [-r res] [-s stack] [-t cpusecs] prog...

DESCRIPTION
s6-softlimit parses its options and sets process (soft) resource limits accordingly.

A value of ‘=’ for any option means “set that limit to the hard limit”.

Depending on your operating system, an option may do nothing.

When s6-softlimit has modified all the limits successfully, it executes into prog....

OPTIONS

-a allmem
    Limit the total available memory to allmem bytes.

-c core
    Limit the core file size to core bytes.

-d data
    Limit the available heap memory to data bytes.

-f fsize
    Limit the file size to fsize bytes.

-l lock
    Limit the available locked memory to lock bytes.

-m mem
    Limit all types of memory to mem bytes.

-o ofiles
    Limit the number of open fds to ofiles.

-p proc
    Limit the number of processes to proc (per user).

-r res
    Limit the available physical memory to res bytes.

-s stack
    Limit the available stack memory to stack bytes.

-t cpusecs
    Limit the available CPU time to cpusecs seconds.

SEE ALSO
s6-applyuidgid(8), s6-envdir(8), s6-envuidgid(8), s6-fghack(8), s6-setsid(8), s6-setuidgid(8), s6-tai64n(8), s6-tai64nlocal(8)

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-softlimit.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)