supervise_me - supervises a list of commands
version 0.004
# Read commands to keep up from STDIN $ supervise_me Enter commands to supervise, one per line plackup -p 3010 ./sites/x/app.psgi plackup -p 3011 ./sites/y/app.psgi ^D # Script it $ cat script.me plackup -p 3010 ./sites/x/app.psgi plackup -p 3011 ./sites/y/app.psgi $ supervise_me < script.me
The supervise_me command is a simple supervisor for multiple process.
supervise_me
It reads a list of commands to execute from STDIN and starts each one, and then monitors their execution. If one of the program dies, the supervisor will restart it after a small 1 second pause.
STDIN
You can restart the supervised process with Ctrl-C. If you hit Ctrl-C again before the supervised process restart, the supervisor will exit. This allows you to use one tap of Ctrl-C to restart, and a double tap to exit.
Ctrl-C
The script accepts no arguments on the command line.
The script doesn't have any command line options.
You can set the SUPERVISE_ME_DEBUG environment variable to 1 to show debug information about the internal workings of the supervisor.
SUPERVISE_ME_DEBUG
App::SuperviseMe
Pedro Melo <melo@simplicidade.org>
This software is Copyright (c) 2011 by Pedro Melo.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install App::SuperviseMe, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::SuperviseMe
CPAN shell
perl -MCPAN -e shell install App::SuperviseMe
For more information on module installation, please visit the detailed CPAN module installation guide.