httpd_ctl - An apache httpd control script that supports Template Toolkit pre-processing
httpd_ctl [--all|-a] [--batch|-b] [--conf_file|-f httpd.conf file] [--debug|-d] [--help|-h] [--man|-m] [--template|-t] (start|stop|coldrestart|restart|graceful|configtest)+
An apache httpd control script that supports Template Toolkit pre-processing
If file extension is .tt automatically implies --template
prints debug messages
prints out usage information and exits
A quoted string specifying any additional options to pass through to the httpd.
produces man page
Requires the --conf_file file to be processed by Template Toolkit. The processed file will be placed in the same directory .
This allows you to do things like environment variable substitution:
[% USE env = EnvHash %] [% env.MY_LOG_DIR %]
It is that simple!
But, remember you can do much more powerful things with Template Toolkit, and use variables in control structures such as if, for, foreach and so on. See http://www.template-toolkit.org/ to read about Template Toolkit in full.
stop the httpd and then start it
Restart httpd if running by sending a SIGHUP or start if not running
Do a graceful restart by sending a SIGUSR1 or start if not running
Do a configuration syntax test and check virtual hosts.
0 - Completed Successfully 1 - Otherwise
Sagar R. Shah
Copyright 2006-2007 Sagar R. Shah, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.