summaryrefslogtreecommitdiff
path: root/src/supervision/s6-svdt-clear.c
blob: 4db48586f0335e51892dfb8b4009a3cea0e330eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 ;
}