+sleep 5
+perl
+my @pidfiles = ( "DIR/redis-cluster/node1/node1.pid", "DIR/redis-cluster/node2/node2.pid" );
+foreach my $pidfile (@pidfiles) {
+ if ( -f $pidfile ) {
+ open (my $fh, "<", $pidfile);
+ while (my $pid = <$fh>) {
+ chomp $pid;
+ kill 'TERM', $pid;
+ }
+ }
+}
+****
+sudo rm -fr DIR/redis-cluster