Crash script for Runit?

2016-01-15 Thread Steve Litt
Hi all,

I use Void Linux, which inits with Runit. Some supervisors have a
script that runs when the supervised program terminates, and I was
wondering if Runit has such a script. I couldn't find evidence of such
with a Google search.

What I'm trying to do is be informed every time one of my daemons goes
down, whether or not it comes back up (sometimes they just keep
changing PIDs and having a 0 uptime).

Thanks,

SteveT

Steve Litt 
January 2016 featured book: Twenty Eight Tales of Troubleshooting
http://www.troubleshooters.com/28




Re: Crash script for Runit?

2016-01-15 Thread Laurent Bercot

On 15/01/2016 19:11, Steve Litt wrote:

Hi all,

I use Void Linux, which inits with Runit. Some supervisors have a
script that runs when the supervised program terminates, and I was
wondering if Runit has such a script. I couldn't find evidence of such
with a Google search.


 http://smarden.org/runit/runsv.8.html

 "./finish" is what you're looking for. ./finish was actually
introduced by runit.

--
 Laurent