diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-21 18:00:10 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2018-03-21 18:00:10 +0000 |
commit | 75c4223a7f5a8a073ba0d898ef9d841fdaef2f63 (patch) | |
tree | d024c08659674117134314e67b4ff825ae51c1d9 /src/supervision/s6-svdt-clear.c | |
parent | 91eba4b27017c3b7bf0d0bb548a12a694ed51a3b (diff) | |
download | s6-75c4223a7f5a8a073ba0d898ef9d841fdaef2f63.tar.xz |
Add s6-svdt-clear, s6-permafailon
Diffstat (limited to 'src/supervision/s6-svdt-clear.c')
-rw-r--r-- | src/supervision/s6-svdt-clear.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/supervision/s6-svdt-clear.c b/src/supervision/s6-svdt-clear.c new file mode 100644 index 0000000..4db4858 --- /dev/null +++ b/src/supervision/s6-svdt-clear.c @@ -0,0 +1,15 @@ +/* ISC license. */ + +#include <skalibs/strerr2.h> +#include <s6/s6-supervise.h> + +#define USAGE "s6-svdt-clear servicedir" +#define dieusage() strerr_dieusage(100, USAGE) + +int main (int argc, char const *const *argv) +{ + if (argc < 1) dieusage() ; + if (!s6_dtally_write(argv[1], 0, 0)) + strerr_diefu2sys(111, "clear death tally for service ", argv[1]) ; + return 0 ; +} |