summaryrefslogtreecommitdiff
path: root/src/supervision/s6-svok.c
blob: 176d8a86a86dc3cc824a24dbd6c18bf878316a4e (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/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 ;
}