Giter Club home page Giter Club logo

vulnware / gpm Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 53 KB

GPM (Go Processes Manager) is a command-line tool for managing processes on your server or local machine. With GPM, you can start, stop, restart, and monitor processes.

Go 82.00% Batchfile 0.91% Makefile 0.30% JavaScript 15.20% CSS 0.49% HTML 0.69% Python 0.40%
background-processes cli command-line-interface command-line-tool daemon devops go lightweight local-machine manager

gpm's Introduction

GPM - Go Processes Manager

GPM is a command-line tool written in Go that helps to manage processes on your server or local machine. It consists of two modules - gpm.exe which runs as a daemon in the background, and gpm-cli which provides a command-line interface for managing processes. With GPM, you can start, stop, restart, and monitor processes on your system.

Installation

Prerequisites

  • Go 1.16 or higher installed on your system.

Installation Steps

  1. Clone the repository from GitHub:

    git clone https://github.com/Vulnware/GPM.git
  2. Build the binary for gpm.exe using the following command: For windows:

    make.bat

    For linux:

       make
  3. Build the binary for gpm-cli using the following command: For windows:

    cd cli
    make.bat

    For linux:

       cd cli
       make
  4. Move both binaries to the /usr/local/bin directory so that they can be executed from anywhere in the terminal for linux or C:\Windows for windows (or any other directory that is in your PATH environment variable). You can also add the directory where the binaries are located to your PATH environment variable. For linux:

    mv gpm.exe /usr/local/bin
    mv gpm-cli /usr/local/bin

    For windows:

    mv gpm.exe C:\Windows
    mv gpm-cli C:\Windows

    Or add the directory where the binaries are located to your PATH environment variable.

  5. Verify that GPM is installed correctly by running the following command:

    gpm-cli --version

    You should see the version number of GPM printed to the console.

Usage

Starting a process

To start a process with GPM, run the following command:

gpm-cli start <command> <args>

For example, to start a Node.js server with GPM, you could use the following command:

gpm-cli start "node server.js" --name "node-server"

Stopping a process

To stop a process with GPM, run the following command:

gpm-cli stop <process-name>

For example, to stop the Node.js server that we started earlier, you could use the following command:

gpm-cli stop node-server

Restarting a process (Not implemented yet)

To restart a process with GPM, run the following command:

gpm-cli restart <process-name>

For example, to restart the Node.js server that we started earlier, you could use the following command:

gpm-cli restart node-server

Listing processes (Not implemented yet)

To list all the processes that are currently running with GPM, run the following command:

gpm-cli ls

Viewing process logs (Not implemented yet)

To view the logs for a process that is running with GPM, run the following command:

gpm-cli logs <process-name>

For example, to view the logs for the Node.js server that we started earlier, you could use the following command:

gpm-cli logs node-server

Contributing

If you would like to contribute to GPM, please open a pull request on GitHub. We welcome any contributions, including bug fixes, new features, and documentation improvements.

License

GPM is licensed under the MIT license. See the LICENSE file for more information.

gpm's People

Contributors

bilinenkisi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

caixiong110

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.