I’m using ruby processes run under daemontools (on linux), and I’m not
sure
what’s going on with signals.
Playing with a very simple ruby “server”:
Signal.trap(“CONT”) { abort }
while(1) do
$stderr << “errslp\n”
$stdout << “outslp\n”
end
When I try to use svc commands (-d, -h) the process being monitored is
running, but it’s PPID is set to 1 (init) and service has started a new
process.
Just using kill to send SIGHUP does what I’d expect (the process dies
and
service restarts a new one).
Suggestions? Anyone else running ruby processes under daemontools?
- James M.