Skip to content

kennethdsheridan/mercenary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mercenary - A Reliable Process Killer

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.

Table of Contents

Features

  • Efficient process termination
  • Handling of zombified processes
  • Response to undesirable process behavior
  • Structured logging

Installation

Prerequisites

Ensure you have Go 1.20 or later installed on your system to build using Go.

Installation via Go

go get gitlab.servicenow.net/cce/hweng/hardware-test/mercenary.git

Installation via SSH

git clone https://gitlab.servicenow.net/cce/hweng/hardware-test/mercenary.git

Installation via HTTPS

git clone https://gitlab.servicenow.net/cce/hweng/hardware-test/mercenary.git

Post Cloning Steps with pre-compiled binary

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

Post Cloning Steps

Navigate to the cloned repository and run the following command to install the Mercenary binary:

go install

Usage

# 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>

Examples

# 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

Contact

  • Kenny Sheridan

For any troubles or inquiries, reach out to me at kennethdashensheridan@gmail.com

About

A process killing CLI app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published