about summary refs log tree commit diff
path: root/src/supervision/s6-svok.c
blob: 1dbfaf0519c5b3d185dd043bd887328a547730e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* ISC license. */

#include <skalibs/strerr.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 ;
}