tlstunnel-lwt icon indicating copy to clipboard operation
tlstunnel-lwt copied to clipboard

setproctitle for status

Open avsm opened this issue 9 years ago • 3 comments

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.

avsm avatar Apr 15 '15 12:04 avsm

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

hannesm avatar Apr 15 '15 12:04 hannesm

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

hannesm avatar Apr 22 '15 10:04 hannesm

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 :-/

avsm avatar Apr 22 '15 10:04 avsm