Skip to content

Commit b52930b

Browse files
authored
Merge pull request #32 from metacpan/mickey/restart
Added restart script
2 parents 795d113 + 3a78373 commit b52930b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

bin/restart.pl

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
use strict;
2+
use warnings;
3+
use v5.36;
4+
5+
use MetaCPAN::Logger qw< :log :dlog >;
6+
7+
use MetaCPAN::ES;
8+
9+
# setup
10+
my $es = MetaCPAN::ES->new();
11+
12+
$es->restart( delay => '5s' );
13+
14+
log_info {'Done'};
15+
16+
1;
17+
18+
__END__
19+
20+
=pod
21+
22+
=head1 SYNOPSIS
23+
24+
# bin/restart
25+
26+
=head1 DESCRIPTION
27+
28+
kick the ES cluster
29+
30+
=cut

0 commit comments

Comments
 (0)