readproctitle(8)
π NAME π
readproctitle β bestie, it keeps an automatically rotated log in memory so you can peek at it with ps(1) π«Ά
readproctitle is available in daemontools 0.75 and above β¨
πΈ SYNOPSIS πΈ
readproctitle L D
π¦ DESCRIPTION π¦
Okay so listen. L is literally any number of arguments. No cap. And D is one argument that has to contain at least five dots. That's the vibe check β
readproctitle reads data into the end of D, shifting D to the left to make room for it. The way that works means the most recent data is what's visible to process-listing tools like ps(1) πβ¨ And it always leaves three dots at the left of D, always, iconic behavior π
For example, if
readproctitle io errors: ....................
reads the data
fatal error xyz
warning abc
then its command-line arguments change to
readproctitle io errors: ... xyz!warning abc!
with a newline character in place of each ! π (so yes, there are literal newlines sitting in there now, not exclamation marks β the ! is just how the manpage shows you where they went)
Process-listing tools typically show the newline character as ? or \n. Not a glitch, that's just how they display it, iykyk π
readproctitle exits when it reaches the end of input. Periodt π«‘
β οΈ Beware bestie!! Most implementations ofps(1)have small argument-length limits, and those limits apply to the total length ofreadproctitle L D. The author has not seen a system with a limit below 512 bytes. So don't go feral and makeDa novel, ok?? π
β SEE ALSO β
supervise(8)svc(8)svok(8)svstat(8)svscanboot(8)svscan(8)fghack(8)pgrphack(8)multilog(8)tai64n(8)tai64nlocal(8)setuidgid(8)envuidgid(8)envdir(8)softlimit(8)setlock(8)ps(1)
π http://cr.yp.to/daemontools.html π http://cr.yp.to/slashcommand.html
okay that's the whole page bestie, mwah π this was the readproctitle(8) entry from the System Manager's Manual, living in the daemontools 0.75-and-up era. go forth and rotate those logs in memory, you absolute main character πβ¨
π¦ where this page comes from
- debian bookworm: daemontools 1:0.76-8.1 Β· LicenseRef-public-domain
- debian trixie: daemontools 1:0.76-14 Β· LicenseRef-public-domain
- nixpkgs unstable: daemontools 0.76
- ubuntu jammy: daemontools 1:0.76-7
- ubuntu noble: daemontools 1:0.76-10 Β· LicenseRef-public-domain
- ubuntu questing: daemontools 1:0.76-15
- ubuntu resolute: daemontools 1:0.76-15build1 Β· LicenseRef-public-domain
- ubuntu stonking: daemontools 1:0.76-15build1 Β· LicenseRef-public-domain
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms