Fwd: sv check exit code not always helpful

From: Buck Evan <buck_at_yelp.com>
Date: Fri, 6 Feb 2015 16:39:54 -0800

---------- Forwarded message ----------
From: Buck Evan <buck_at_yelp.com>
Date: Fri, Feb 6, 2015 at 11:38 AM
Subject: sv check exit code not always helpful
To: supervision_at_list.skarnet.org


I've made a toy service that always fails to start (exec false).
When I run sv check on it, I get this result:


```
$ sv check ./foo
ok: down: ./foo: 1s, want up

$ echo $?0
```

>From the documentation, I had expected check to fail as long as the actual
state didn't match the desired state, ie if there is any "want" clause. I'm
using `sv` check to wait for runit to reach a steady state before using
services.
Received on Sat Feb 07 2015 - 00:39:54 UTC

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