Server::Control::Nginx -- Control Nginx
version 0.20
use Server::Control::Nginx; my $nginx = Server::Control::Nginx->new( binary_path => '/usr/sbin/nginx', conf_file => '/path/to/nginx.conf' ); if ( !$nginx->is_running() ) { $nginx->start(); }
Server::Control::Nginx is a subclass of Server::Control for Nginx processes.
In addition to the constructor options described in Server::Control:
Path to conf file - required.
Server::Control
This software is copyright (c) 2011 by Jonathan Swartz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Server::Control, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Server::Control
CPAN shell
perl -MCPAN -e shell install Server::Control
For more information on module installation, please visit the detailed CPAN module installation guide.