App-Munner

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

2015-01-18 - 0.57
    + Let user to set timeout to the process

2014-10-30 - 0.56
    + Use environment variable to override PID_FILE, ERROR_LOG and ACCESS_LOG
    + bugfix

2014-07-08 - 0.55
    + Set environment variable USER to chown the running process
    + Set environment variable PID_FILE to specify the pid file location as well as ACCESS_LOG and ERROR_LOG
    + Set environment variable TERMINAL to leave TTY / PTTY on at the background

2014-05-25 - 0.5
    + Added stop / start / restart / graceful etc...

2014-05-24 - 0.4
    + inject environment variables
    + can run at non stop mode either sleep or pause
    + start apps in a group
    + start groups in a group
    - fix issue of ctrl-c

bin/munner  view on Meta::CPAN

        env:
            - USER: gateway
              ## Using LOG_DIR for pid file, access log and error log
            - LOG_DIR: /var/log
        run: bin/app.pl
        carton: 1
    ssh-port-forward:
        dir: /tmp
        env:
            - USER: me
            ## Using TERMINAL to let ssh stay alive in the background
            - TERMINAL: 1
        timeout: 5
        run: ssh -L 3306:localhost:3306 db-server
groups:
    database:
        ## only start these apps
        apps:
            - login-server
            - db-api
    events:

lib/App/Munner.pm  view on Meta::CPAN

=head1 NAME

Munner - Multi-Apps Runner

=head1 DESCRIPTION

This script "munner" run multiple apps in one commands.

=head1 Why we need this?

Some project may involves different APIs running at the background in order
to exchange information. But what if we just use munner to start these apis
in one call. It is a very handy tools to start multiple applications.

=head1 How to install it?

=head2 System perl

 cpan -i App::Munner

=head2 Perlbrew

lib/App/Munner.pm  view on Meta::CPAN

 pwd --> /home/micvu/websrc/website
 ls munner.yml --> munner.yml
 munner start <options> --> without telling the config file location

=head2 Command examples:

start web-frontend only

 munner start -a web-frontend

start event-api at the background and start web-frontend

 munner duck -a event-api
 munner start -a web-frontend

restart background event-api

 munner restart -a event-api 

start everything website (db, event and login)

 munner start -g website

start all apps in the config

 munner start -A



( run in 1.487 second using v1.01-cache-2.11-cpan-d8267643d1d )