| RunApp documentation | Contained in the RunApp distribution. |
App::Control::Apache - App::Control subclass for apache
see App::Control
The class implements additional methods for App::Control to emulate apachectl.
Chia-liang Kao <clkao@clkao.org>
Copyright (C) 2002-5, Fotango Ltd.
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
| RunApp documentation | Contained in the RunApp distribution. |
#!/usr/bin/perl -w use strict; package App::Control::Apache; use base qw(App::Control); sub graceful { my $self = shift; die $self->status unless $self->running; if (kill ('USR1', $self->pid)) { return "$0: httpd gracefully restarted\n" } else { return "$0: httpd could not be restarted\n" } } sub configtest { my $self = shift; die $self->status unless $self->running; if (kill ('USR1', $self->pid)) { return "$0: httpd gracefully restarted\n" } else { return "$0: httpd could not be restarted\n" } }
1;