socklog-check(8)
π socklog-check(8) π
okay bestie, welcome to socklog-check, a little page from the System Manager's Manual. she's small, she's mighty, and she's literally just here to answer one question: is socklog even up rn??? π¦
β¨ NAME β¨
socklog-check β checks for the availability of a socklog(8) service.
πΈ SYNOPSIS πΈ
socklog-check [-v] [unix [address]]
π DESCRIPTION π
so here's the tea: socklog-check tries to connect to a socklog(8) unix service, and then it reports back whether that connection attempt succeeded or didn't. that's the whole job. she's not complicated, she's just reliable π
she connects to the datagram oriented unix domain socket address, and reports success through the return code. and if you don't hand her an address? she just goes straight for /dev/log like it's her usual spot. no cap.
now here's the part where she really eats π β when you're running services that use the syslog facility under runit's service supervision, you should add socklog-check to the top of the service's run script. why? so that no syslog messages get generated until a syslog service is actually up and running to process those messages. it's giving "don't yell into the void, bestie." like this:
#!/bin/sh
socklog-check || exit 1
exec service_using_syslog
β¨ OPTIONS β¨
-vβ verbose. prints a verbose message to standard error. (she's chatty, we love that for her π£οΈ)
π EXIT CODES π
- on success,
socklog-checkreturns0. iconic. no notes. π«Ά - on error,
socklog-checkprints a message to standard error and exits111. yeah she's dramatic about it but she's honest π
π SEE ALSO π
socklog(8), socklog-conf(8), svlogd(8), tryto(1), uncat(1), sv(8), runsv(8), runsvdir(8)
go read the lore, iykyk π
https://smarden.org/socklog/
https://smarden.org/runit/
π AUTHOR π
Gerrit Pape <pape@smarden.org> β the original main character, we stan π
and that's the page bestie!! this was socklog-check(8) from the System Manager's Manual, and the footer literally just says socklog-check(8) one more time for good measure β no version number, no date, she said "my name is enough." periodt. πβ¨π¦
π¦ where this page comes from
- nixpkgs unstable: socklog 2.1.2
- ubuntu resolute: socklog 2.1.2+repack-1 Β· BSD-3-Clause
- ubuntu stonking: socklog 2.1.2+repack-3 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms