man > chpst(8)

📝 NAME

chpst - runs a program with a changed process state

🚀 Quick Reference

Use CaseCommandDescription
Run as different user chpst -u user:group prog Set uid/gid and supplementary groups before running prog
Set environment from directory chpst -e dir prog Load environment variables from files in dir
Chroot and run chpst -/ root prog Change root directory to root before starting prog
Set resource limits chpst -m 100M -d 50M -o 100 -p 50 prog Limit memory, data segment, open files, processes per uid
Lock file exclusive (wait) chpst -l /tmp/lock prog Obtain an exclusive lock; wait if locked
Lock file fail if busy chpst -L /tmp/lock prog Obtain an exclusive lock; fail immediately if locked
Verbose mode chpst -v prog Print verbose messages to stderr
Close standard streams chpst -0 -1 -2 prog Close stdin, stdout, stderr before starting prog

📋 SYNOPSIS

chpst  [-vVP012]  [-u user] [-U user] [-b argv0] [-e dir] [-/ root] [-n inc] [-l|-L lock] [-m
       bytes] [-d bytes] [-o n] [-p n] [-f bytes] [-c bytes] [-t seconds] prog

🧠 DESCRIPTION

prog consists of one or more arguments.

chpst changes the process state according to the given options, and runs prog.

âš™ī¸ OPTIONS

đŸšĒ EXIT CODES

chpst exits 100 when called with wrong options. It prints an error message and exits 111 if it has trouble changing the process state. Otherwise its exit code is the same as that of prog.

🔄 EMULATION

If chpst is called as envdir, envuidgid, pgrphack, setlock, setuidgid, or softlimit, it emulates the functionality of these programs from the daemontools package respectively.

📚 SEE ALSO

sv(8), runsv(8), setsid(2), runit(8), runit-init(8), runsvdir(8), runsvchdir(8)

http://smarden.org/runit/
http://cr.yp.to/daemontools.html

👤 AUTHOR

Gerrit Pape <pape AT smarden.org>

chpst(8)
📝 NAME 🚀 Quick Reference 📋 SYNOPSIS 🧠 DESCRIPTION âš™ī¸ OPTIONS đŸšĒ EXIT CODES 🔄 EMULATION 📚 SEE ALSO 👤 AUTHOR

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-01 09:41 @216.73.216.239
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^