PMC (Process Management Controller) is an efficient and user-friendly alternative to PM2, designed using Rust. It offers a comprehensive command-line and API interface for managing your processes with ease, allowing users to start, stop, and restart processes while providing customizable output and detailed process information.
Process Management Controller (PMC)
PMC (Process Management Controller) serves as a straightforward and efficient alternative to PM2, specifically designed for process management in environments where simplicity and performance are essential. Developed in Rust, PMC offers a robust command-line and API interface to easily start, stop, restart, and manage fork processes.
The following commands illustrate the functionality of PMC:
# Start or restart a process
pmc start <id/name> or <script> [--name <name>]
# Stop or kill a process
pmc stop <id/name>
# Remove a process
pmc remove <id/name>
# Retrieve process information
pmc info <id/name>
# Access process environment variables
pmc env <id/name>
# Save all processes to a dump file
pmc save
# Restore all processes from a dump file
pmc restore
# List all currently running processes
pmc list [--format <raw|json|default>]
# Fetch process logs
pmc logs <id/name> [--lines <num_lines>]
# Reset the process index
pmc daemon reset
# Stop the daemon
pmc daemon stop
# Start or restart the daemon
pmc daemon start
# Check the health of the daemon
pmc daemon health
# Add a new server
pmc server new
# List servers
pmc server list [--format <format>]
# Remove a server
pmc server remove <name>
# Set a default server
pmc server default [<name>]
For additional command details, run pmc --help in your terminal.
The PMC project is an excellent choice for developers seeking a lightweight tool for process management, enhancing productivity and efficiency in process control tasks.
No comments yet.
Sign in to be the first to comment.