ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/bin/aemp
(Generate patch)

Comparing AnyEvent-MP/bin/aemp (file contents):
Revision 1.29 by root, Tue Sep 1 15:11:40 2009 UTC vs.
Revision 1.30 by root, Wed Sep 2 16:28:42 2009 UTC

82This can be used to run a node - together with some services, this makes 82This can be used to run a node - together with some services, this makes
83it unnecesary to write any wrapper programs. 83it unnecesary to write any wrapper programs.
84 84
85=over 4 85=over 4
86 86
87=item run <profile> <...> 87=item run <configure_args>...
88 88
89Runs a node by calling C<AnyEvent::MP::Kernel::configure> with the given 89Runs a node by calling C<AnyEvent::MP::Kernel::configure> with the given
90arguments. The node runs under L<AnyEvent::Watchdog>, can be restarted 90arguments. The node runs under L<AnyEvent::Watchdog>, can be restarted
91(and autorestarted, see the L<AnyEvent::Watchdog> manual). 91(and autorestarted, see the L<AnyEvent::Watchdog> manual). A very common
92invocation is to just specify a profile using the profile parameter
93
94 aemp run profile database-backend
95
96... but you can use most arguments that C<configure> understands:
97
98 aemp run nodeid mynode2 profile someprofile
92 99
93Care has been taken to load (almost) no modules other than 100Care has been taken to load (almost) no modules other than
94L<AnyEvent::Watchdog> and the modules it loads, so everything (including 101L<AnyEvent::Watchdog> and the modules it loads, so everything (including
95the L<AnyEvent::MP> modules themselves) will be freshly loaded on restart, 102the L<AnyEvent::MP> modules themselves) will be freshly loaded on restart,
96which makes upgrading everything except the perl binary easy. 103which makes upgrading everything except the perl binary easy.
339 346
340Example: create a C<server> profile, give it a random node name, some seed 347Example: create a C<server> profile, give it a random node name, some seed
341nodes and bind it on an unspecified port on all local interfaces. You 348nodes and bind it on an unspecified port on all local interfaces. You
342should add some services then and run the node... 349should add some services then and run the node...
343 350
344 aemp server setnodeid anon/ setseeds doomed,10.0.0.2:5000 setbinds "*:*" 351 aemp profile server nodeid anon/ seeds doomed,10.0.0.2:5000 binds "*:*"
345 352
346=item delprofile <name> 353=item delprofile <name>
347 354
348Deletes the profile of the given name. 355Deletes the profile of the given name.
349 356

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines