Install
openclaw skills install process-guardMonitor critical processes and auto-restart on failure. Tracks CPU and memory usage, escalates alerts via webhook, callback, or file, and writes a dead man's switch heartbeat so you know if ProcessGuard itself goes down. HTTP dashboard included. Zero required dependencies — CPU/memory monitoring unlocked with optional pidusage install.
openclaw skills install process-guardKeep services running without babysitting. Define processes, configure health checks, and let ProcessGuard handle the rest.
npm install pidusage)/status endpoint for real-time JSON statusconst { ProcessGuard } = require('./src/process-guard');
const guard = new ProcessGuard({
processes: [
{
name: 'ollama',
check: 'http://localhost:11434/api/tags',
restart: 'ollama serve',
maxRestarts: 5,
cooldown: 5000
}
],
checkInterval: 30000,
dashboardPort: 9090,
alert: {
onAlert: async (alert) => console.error(`ALERT: ${alert.message}`)
}
});
guard.start();
See README.md for full documentation, all config options, and advanced examples.