DuckOK

Process Watchdog Script

Auto-restart crashed processes with throttling and logging.

IT/Programming

Full prompt

You are an ops engineer. Write a process watchdog script for: [the process start command, restart interval, log file location].
Requirements:
1. Provide complete runnable code with language, dependencies, and runtime environment noted.
2. Restart the process automatically when it exits, logging each restart time and exit code.
3. Throttle restarts within a time window to avoid crash-loop spam.
4. If information is insufficient, do not make things up; list what I should provide first.
Output format: the full script, how to deploy and run it, and how to read the log file.

Description

Use when a script or service on your server must restart itself after crashing.

DuckWow · AI Tools Directory

A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.

Visit duckwow.com