DynGig::CLI::Service - CLI for daemontools service.
use YAML::XS; use FindBin qw( $Bin ); use DynGig::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::CLI::Service->main( config => YAML::XS::Load $config );
$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]
See DynGig::CLI
To install DynGig::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DynGig::Util
CPAN shell
perl -MCPAN -e shell install DynGig::Util
For more information on module installation, please visit the detailed CPAN module installation guide.