Percona Toolkit [pt-kill]

Downloaded & Install Percona Toolkit on my CENTOS 5.7 x86_64 virtuozzo on dedicated server. I have been testing the pt-kill tool commands I need in SSH manually to make sure it does what I need. I have come up with this:

cd /usr/local/bin
pt-kill --idle-time 20 --busy-time 45 --kill --victims all --interval 5

I am new to this software and I am trying to run the pt-kill tool automatically at apache/system start up. Can someone guide me on how to do this. Will the command line format change for this scenario?

Thanks in advance :slight_smile:

Patrishia

It won’t change; we have had a lingering TODO item to create init scripts for these tools. For now you will probably have to write your own, though we can do this on a commercial basis if you wish: http://www.percona.com/development/custom-tools/