svscanboot(8)

πŸ“¦
version 0.76 Β· 2 versions
  • 0.76 Β· debian bookworm, debian trixie, nixpkgs unstable, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.11 Β· alpine 3.24
, in debian bookworm, debian trixie, nixpkgs unstable, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– svscanboot(8) πŸ’–

okay bestie, so this one lives in the System Manager's Manual and it's called svscanboot β€” that's the name, that's the vibe, we move 🫢

✨ NAME ✨

svscanboot β€” kicks off svscan(8) over in the /service directory, and routes all its output and error messages through readproctitle(8) so you can actually see them. πŸ‘€

lowkey important: svscanboot is available in daemontools 0.75 and above. older than that? it's not giving. πŸ’€


🌸 SYNOPSIS 🌸

svscanboot

no flags. no args. no drama. she just goes. πŸ’…


πŸŽ€ DESCRIPTION πŸŽ€

so here's what actually happens when you run her β€” she runs this pipeline:

svscan /service 2>&1 | readproctitle service errors: .....

...with 400 dots. that's 400 literal dots. the last 400 bytes of error messages from svscan(8) will be visible to ps(1) through readproctitle(8). yes bestie, your error messages get to be main character in the process list 🌟

then svscanboot sets $PATH to:

/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin

(it's all one line, no space, don't come for me 😭)

and she clears all other environment variables. all of them. gone. bye. 🧹✨

program writers are encouraged to use globally allocated names in /command β€” that's the house rule, and honestly? it's giving organization πŸ’–

fr fr though, that env-clearing is real: if your program was counting on some random variable being inherited, she is not the one. she wipes the slate. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

and the lore, if you wanna go down the rabbit hole:


okay that's the whole page, bestie, we ate and left no crumbs πŸ“

that was svscanboot(8) from the System Manager's Manual β€” shoutout to daemontools 0.75 and above for bringing her into this world πŸ’œ stay slay, go start some services, mwah πŸ’‹πŸŒˆ

πŸ“¦ where this page comes from