summaryrefslogtreecommitdiff
path: root/src/supervision/s6-svok.c
blob: c6c6bd44abec9c3f477e684896b8a135c5b9186a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* ISC license. */

#include <skalibs/strerr2.h>
#include <s6/supervise.h>

#define USAGE "s6-svok servicedir"

int main (int argc, char const *const *argv)
{
  int r ;
  PROG = "s6-svok" ;
  if (argc < 2) strerr_dieusage(100, USAGE) ;
  r = s6_svc_ok(argv[1]) ;
  if (r < 0) strerr_diefu2sys(111, "check ", argv[1]) ;
  return !r ;
}