Skip to content

hspak/gopm3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gopm3

Dumb Process Manager

Config

Currently hardcoded to look for a JSON file, gopm3.config.json in the current directory.

Config Format

[
    {
        "name": "some name",       // The label to reference the command by
        "command": "ls",           // The command to run
        "args": ["-a", "-b"],      // The arguments to pass to the command
        "restart_delay": 1000,     // The delay (in milliseconds) before each restarts
        "no_process_group": false, // (Optional) Controls whether gopm3 should kill the child processes of the command as well
    },
    {
        ...
    },
    ...
]

Usage

  • Arrow keys to navigate between processes
  • Mouse clicks to focus the different panes
  • <Space> to restart highlighted process
  • m to toggle mouse mode (default: on, text is only highlightable in non-mouse mode)
  • ESC or Ctrl + c to exit
  • All logs (both stdout/stderr) are replicated to ~/.gopm3/<process-name>.log