NAME
serverctlp - apachectl style controller for servers
VERSION
version 0.20
SYNOPSIS
serverctlp -c class -k start|stop|restart|ping [-d server_root] [-v] [-q]
serverctlp -h
DESCRIPTION
serverctlp
uses a Server::Control subclass to start, stop, restart or ping (show status of) a server.
OPTIONS
Required options: -c and -k, and possibly others depending on subclass
-c, --class Specify the subclass of Server::Control to use
-d, --server-root Specify the server root - will determine from configuration file if given
-h, --help Print help message
-k, --action Specify action - start, stop, restart, or ping
-q, --quiet Show only errors and warnings
-v, --verbose Show verbose output
-I Library paths to include
In general, any constructor parameter to Server::Control to the subclass can be passed here (replacing underscores with dashes), e.g.
--name
--wait-for-status-secs
RC FILE
You may place options in an rc file called serverctl.yml in the server root, e.g.
# This is my serverctl.yml
use_sudo: 1
wait_for_status_secs: 5
You can also specify the path of the rc file with --serverctlrc.
AUTHOR
Jonathan Swartz
SEE ALSO
COPYRIGHT & LICENSE
Copyright (C) 2007 Jonathan Swartz.
This software is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantibility and fitness for a particular purpose.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
COPYRIGHT AND LICENSE
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.