hannesm / tlstunnel-lwt

TLS tunnel -- an alternative to stud / stunnel
BSD 2-Clause "Simplified" License
85 stars 7 forks source link

setproctitle for status #4

Open avsm opened 9 years ago

avsm commented 9 years ago

A cute trick that djb tools is to setproctitle to reflect how busy a service is. This is strictly eyecandy, but might be nice to put in to show active connections.

hannesm commented 9 years ago

is this what SIGINFO (ctrl+t on BSD) uses as well?

hannesm commented 9 years ago

setproctitle seems to be only available on BSD, not on linux/OSX... Is there something similar to py-setproctitle in OCaml?

avsm commented 9 years ago

probably worth seeing what djb's daemontools do on linux. the supervisor processes set the proc title. I suspect it's a mass of ioctl gunk :-/