The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DynGig::Util::CLI::Service - CLI for daemontools service.

EXAMPLE

use YAML::XS;
use FindBin qw( $Bin );
use DynGig::Util::CLI::Service;

################################################################
##                   define services here                     ##
################################################################

my $config =<< "END_CONF";
---
cluster.server:
  command: "$Bin/cluster.server -p 34567"
  svc_root: /home/huan/service
  log_size: 100000
  log_keep: 10
  user: huan
  pause: 60
  nice: 19

END_CONF

################################################################

DynGig::Util::CLI::Service->main( config => YAML::XS::Load $config );

SYNOPSIS

$exe --help

$exe name [--svc-path directory] --up

$exe name [--svc-path directory] --down

$exe name [--svc-path directory] --kill

$exe name [--svc-path directory] --restart

$exe name [--svc-path directory] [--status]

NOTE

See DynGig::Util