Welcome to Mercenary, a robust and efficient process killer tool developed in Go. It's purpose-built to terminate processes post-execution or in response to specific events that cause them to zombify or exhibit undesirable behavior. It's designed to provide a reliable solution for managing system processes and maintaining optimum resource usage.
- Efficient process termination
- Handling of zombified processes
- Response to undesirable process behavior
- Structured logging
Ensure you have Go 1.20 or later installed on your system to build using Go.
go get gitlab.servicenow.net/cce/hweng/hardware-test/mercenary.git
git clone https://gitlab.servicenow.net/cce/hweng/hardware-test/mercenary.git
git clone https://gitlab.servicenow.net/cce/hweng/hardware-test/mercenary.git
Navigate to the /bin directory and execute the binary according to your system architecture:
# For Linux
./bin/mercenary-linux puppet iptables mariadb
# For MacOS
./bin/mercenary-darwin puppet iptables mariadb
Navigate to the cloned repository and run the following command to install the Mercenary binary:
go install
# Allow to ask nicely first before killing (SIGTERM)
./mercenary <PID or process name>
# To kill without asking nicely first (SIGKILL)
./mercenary kill <PID or process name>
# Kill a process with pid 1234
./mercenary kill 1234
# Kill a process with name "mercenary"
./mercenary mariadb
# Kill multiple processes with PID's
mercenary kill 1234 5678 9012
# Kill multiple processes with names
./mercenary kill swtichEngage mariadb firewalld
- Kenny Sheridan
For any troubles or inquiries, reach out to me at kennethdashensheridan@gmail.com