| 1 | package HTTP::Balancer::Command::Stop; | ||
| 2 | |||
| 3 | use Modern::Perl; | ||
| 4 | |||
| 5 | use Moose; | ||
| 6 | |||
| 7 | with qw( HTTP::Balancer::Role::Command ); | ||
| 8 | |||
| 9 | sub run { | ||
| 10 | my ($self, ) = @_; | ||
| 11 | |||
| 12 | $self | ||
| 13 | ->actor("Nginx") | ||
| 14 | ->new | ||
| 15 | ->stop(pidfile => $self->config->pidfile); | ||
| 16 | |||
| 17 | } | ||
| 18 | |||
| 19 | 1; | ||
| 20 | __END__ |