pmdaemon 0.1.4

PMDaemon - A high-performance, cross-platform process manager built in Rust with advanced port management and monitoring capabilities
Documentation
[[apps]]

name = "web-server"

script = "node"

args = ["server.js"]

instances = 4

port = "3000-3003"

max_memory_restart = "512M"

autorestart = true

max_restarts = 16

min_uptime = 1000

restart_delay = 0

kill_timeout = 1600



[apps.env]

NODE_ENV = "production"

PORT = "3000"



[[apps]]

name = "api-service"

script = "python"

args = ["-m", "uvicorn", "main:app", "--host", "0.0.0.0"]

cwd = "/opt/api"

instances = 2

port = "auto:8000-8100"

max_memory_restart = "1G"

namespace = "api"



[apps.env]

PYTHONPATH = "/opt/api"

DATABASE_URL = "postgres://localhost/mydb"



[[apps]]

name = "worker"

script = "node"

args = ["worker.js"]

instances = 1

max_memory_restart = "256M"



[apps.env]

NODE_ENV = "production"

REDIS_URL = "redis://localhost:6379"



[[apps]]

 name = "static-server"

 script = "python"

instances = 1

 args = ["-m", "http.server", "8080"]

 port = "8080"

 cwd = "/var/www/html"