Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 246c4a9919
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (25 sloc) 0.957 kb
#!/usr/bin/perl -w
######################################################################
# Copyright (c) 2012, Yahoo! Inc. All rights reserved.
#
# This program is free software. You may copy or redistribute it under
# the same terms as Perl itself. Please see the LICENSE.Artistic file
# included with this project for the terms of the Artistic License
# under which this project is licensed.
######################################################################
use strict;
use Chisel::Builder::Engine;
# become chisel if we started out as root
if( $< == 0 ) {
exec( "/bin/setuidgid", "chisel", $0, @ARGV );
die "exec failed: $!\n";
}
my $engine = Chisel::Builder::Engine->new( log4perl_level => 'WARN' );
$engine->setup;
my $zkdir = $engine->config( "zookeeper_dir" ) || '/var/zookeeper';
exec(
"java", "-cp",
"/lib/jars/zookeeper.jar:/lib/jars/log4j.jar",
"org.apache.zookeeper.server.PurgeTxnLog",
$zkdir, "-n", 3
);
Jump to Line
Something went wrong with that request. Please try again.