s6-svdt-clear.c (392B)
1 /* ISC license. */ 2 3 #include <skalibs/strerr.h> 4 #include <s6/supervise.h> 5 6 #define USAGE "s6-svdt-clear servicedir" 7 #define dieusage() strerr_dieusage(100, USAGE) 8 9 int main (int argc, char const *const *argv) 10 { 11 PROG = "s6-svdt-clear" ; 12 if (argc < 2) dieusage() ; 13 if (!s6_dtally_write(argv[1], 0, 0)) 14 strerr_diefu2sys(111, "clear death tally for service ", argv[1]) ; 15 return 0 ; 16 }