08 Apr 2003 12:46:56 UTC
- Distribution: poest
- Module version: 1.3
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (4 / 1 / 0)
- KwaliteeBus factor: 0
- 59.35% Coverage
- License: perl_5
- Perl: v5.5.3
- Activity24 month
- Download (23.9KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCWEST Casey West
- COPYRIGHT AND LICENSE
- SEE ALSO
POEST::Server - The Poest Master General
my $server = POEST::Server->new( Config => 'POEST::Config::Genearl', ConfigFile => '/etc/poest.conf', ); $server->start;
This module controls the server itself.
All high-level server interaction happens here.
Create a new server instance. This will not make the server run, but it will configure it, load the modules and configure them, and spawn the proper POE sessions. All the parameters passed to new will be passed directly to the configurator of your choice, as defined by the
Configparameter (POEST::Config by default).
Make the server run. This will block execution when called directly.
Fork and start the server. This method will return the pid of the server. If the
pidfileconfiguration parameter is found in the configuration class, an attempt is made to write that pid file. If that attempt fails, or if the pid file already exists, and exception is thrown and the attempt to start the server is stalled.
Stop the server. If a pidfile was specified, the pid will be read from it. Otherwise, an attempt to find a process name with the value of
$0is tried, by default that is set to 'poest'.
NOTE: As of right this minute, the process table magic isn't written as Proc::ProcessTable isn't ported to Darwin.
Thses are the configuration parameters that the server itself needs from the configuration mechanism.
The main host that this smtp server runs for.
The port this server will run on.
This is a multi-value parameter. Each value is the full name of the module that contains the plugin class.
Casey West, <firstname.lastname@example.org>
Copyright 2003 DynDNS.org
You may distribute this package under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file, with the exception that it may not be placed on physical media for distribution without the prior written approval of the author.
THIS PACKAGE IS PROVIDED WITH USEFULNESS IN MIND, BUT WITHOUT GUARANTEE OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. USE IT AT YOUR OWN RISK.
For more information, please visit http://opensource.dyndns.org
Module Install Instructions
To install POEST::Server, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install POEST::Server
For more information on module installation, please visit the detailed CPAN module installation guide.