s6

Mirror/fork of https://skarnet.org/software/s6/
git clone https://ccx.te2000.cz/git/s6
Log | Files | Refs | README | LICENSE

s6-svok.c (334B)


      1 /* ISC license. */
      2 
      3 #include <skalibs/strerr.h>
      4 #include <s6/supervise.h>
      5 
      6 #define USAGE "s6-svok servicedir"
      7 
      8 int main (int argc, char const *const *argv)
      9 {
     10   int r ;
     11   PROG = "s6-svok" ;
     12   if (argc < 2) strerr_dieusage(100, USAGE) ;
     13   r = s6_svc_ok(argv[1]) ;
     14   if (r < 0) strerr_diefu2sys(111, "check ", argv[1]) ;
     15   return !r ;
     16 }