Re: detect service crashes

From: Alex Efros <powerman_at_powerman.name>
Date: Fri, 6 Sep 2013 19:59:28 +0300

Hi!

On Fri, Sep 06, 2013 at 11:21:24AM -0500, Mike Pomraning wrote:
> are too clever, you could instead log inside of ``service/control/t'' and

Yeah, I've already implemented this, looks like there is no simpler way.

control/t:
            #!/bin/sh
        touch .killed
        exit 1

finish:
        #!/bin/sh
        rm .killed 2>/dev/null && exit
        tail ./log/current | mail "$USER" -s "service exit: $(basename "$(pwd)")"

-- 
			WBR, Alex.
Received on Fri Sep 06 2013 - 16:59:28 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:18 UTC