/
README.txt
49 lines (31 loc) · 1005 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
NAME
Proc::Supervised::Convenience - Supervise concurrent worker processes
SYNOPSIS
driver script:
#!/usr/bin/perl
use Proc::Supervised::Convenience;
Proc::Supervised::Convenience
->new_with_options( program => \&work )
->supervise;
sub work {
my @args = @_;
# code to run forever
}
invocation:
./work -d -j 10 foo bar
FEATURES
* auto-restarts worker processes
* kill -HUP to restart all workers
* kill -INT to stop
* kill -USR1 to relaunch
Command-line options
* --detach | -d # detach from terminal
* --processes | -j N # run N copies of &work
Any remaining command line arguments are passed on as is to your work
subroutine.
SEE ALSO
POE::Component::Supervisor.
COPYRIGHT & LICENSE
Copyright 2011 Rhesa Rozendaal, all rights reserved.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.