#! perl # restart server when certain resource limits are exceeded our $MAX_VMSIZE = $cf::CFG{checkrusage}{vmsize} || 1_000_000_000; $^O eq "linux" or die "only linux supported right now.\n"; our $TIMER = cf::periodic 10, sub { open my $fh, "= $MAX_VMSIZE; };