Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Process Management Controller (PMC)
## Overview
PMC (Process Management Controller) is a simple process management tool written in Rust. It provides a command-line interface to start, stop, restart, and manage processes. PMC is designed to be extensible, allowing users to define and manage their processes efficiently.
## Features
- Start, stop, and restart processes.
- List all running processes with customizable output formats.
- Retrieve detailed information about a specific process.
## Installation
`cargo install pmc`
## Usage
### Start/Restart a Process
```bash
pmc start <id> or <script> [--name <name>]
```
### Stop/Kill a Process
```bash
pmc stop <id>
```
### Remove a Process
```bash
pmc remove <id>
```
### Get Information of a Process
```bash
pmc info <id>
```
### List All Processes
```bash
pmc list [--format <raw|json|default>]
```
### Get Logs from a Process
```bash
pmc logs <id> [--lines <num_lines>]
```
## Building from Source
If you want to build PMC from source, make sure you have Rust and Cargo installed on your system. Clone the repository, navigate to the project directory, and use the following commands:
```bash
cargo build --release
```
The compiled binary will be available in the `target/release` directory.