👁

Supervisor Config Generator

Generate Supervisor process management configuration files

Quick Start Templates

Basic Configuration

Program Name
Command
Directory
User
Number of Processes
Set to > 1 for process pool

Startup Behavior

Auto Start
Auto Restart
On Unexpected Exit
Auto restart program after unexpected exit
Start Retries
Stop Signal
TERM
Stop Wait Seconds
seconds

Log Management

Stdout Log File
Stderr Log File
Log File Max Bytes
Log File Backups

Advanced Settings

Priority
Lower numbers = higher priority (0-999)
Environment VariablesOne variable per line, format: KEY="value"

Generated Configuration

Save this file to /etc/supervisor/conf.d/ and run: supervisorctl reread && supervisorctl update

What is Supervisor

Supervisor is a process control system for Unix-like operating systems that allows users to monitor and control multiple processes. It provides a simple way to manage long-running processes, automatically restart crashed programs, and manage process groups. Supervisor is particularly useful for web applications, background workers, and daemon processes that need to run continuously.

Features

⚙️

Complete Program Configuration

Configure all Supervisor program settings including command, directory, user, process count with visual interface without memorizing INI syntax
🔄

Auto Restart Strategies

Flexible restart policies: restart on unexpected exit, always restart, or never restart. Configure retry attempts and stop signals for robust process management
📝

Comprehensive Log Management

Configure stdout and stderr log files with rotation settings, max file size, and backup counts to manage disk space efficiently
🎯

Advanced Process Control

Set process priorities, environment variables, and multiple process instances for scalable daemon management with production-ready configurations

📋Usage Guide

1️⃣
Basic Settings
Enter program name, command to execute, working directory, and user to run as
2️⃣
Startup Options
Configure auto-start on boot, restart strategy, and retry attempts
3️⃣
Log Configuration
Set log file paths, max file sizes, and backup rotation counts
4️⃣
Deploy
Download the config file to /etc/supervisor/conf.d/ and reload Supervisor

📚Technical Introduction

🔧Supervisor Architecture

Supervisor uses a client-server model with supervisord daemon monitoring processes and supervisorctl CLI for control. It reads configuration files from /etc/supervisor/conf.d/ directory. Each program is defined in an INI-format configuration file with sections like [program:name]. Supervisor monitors process PIDs and restarts programs according to configured policies.

🔄Process Lifecycle Management

Supervisor manages the complete process lifecycle: starting, monitoring, stopping, and restarting. The autorestart option determines restart behavior: 'unexpected' restarts only on unexpected exits (non-zero exit codes), 'true' always restarts, 'false' never restarts. startretries defines how many times to attempt starting a failing process before giving up.

📊Log Rotation and Management

Supervisor provides built-in log rotation with stdout_logfile_maxbytes and stdout_logfile_backups settings. When log file reaches max size, it's rotated and old files are kept according to backup count. This prevents disk space issues. Logs can be monitored in real-time using 'supervisorctl tail -f programname' command.

🎯Priority and Process Groups

Priority value (0-999) determines startup and shutdown order, with lower numbers starting first. numprocs creates a process pool with multiple instances of the same program. Environment variables can be set per program using KEY="value" format. process_name template variables like %(program_name)s and %(process_num)02d enable dynamic naming.

Frequently Asked Questions

What is Supervisor Config Generator used for?

Supervisor Config Generator is used to create configuration files for Supervisor process management. Supervisor is a process control system for managing long-running processes on Linux/Unix systems. This tool helps you configure program settings, auto-start/restart strategies, log management, process priorities, and environment variables through a visual interface, automatically generating standard-compliant supervisor.conf configuration files.
💬

How to use this configuration generator tool?

Usage steps: 1) Enter program name and execution command; 2) Set working directory and run user; 3) Configure auto-start and restart strategies; 4) Set log file paths and rotation rules; 5) Configure process priority and environment variables; 6) Click download button to get configuration file; 7) Save file to /etc/supervisor/conf.d/ directory; 8) Run supervisorctl reread && supervisorctl update to activate configuration.
🔍

What's the difference between the three autorestart options?

autorestart controls restart behavior after process exit: 1) unexpected: restarts only when process returns non-zero exit code, this is the most commonly used option; 2) true (always): restarts regardless of how process exits, applicable to services that must run continuously; 3) false (never): doesn't automatically restart after process exit, applicable to one-time tasks. The unexpected option is recommended for most services.
💡

Is this tool free?

Yes, this Supervisor Config Generator tool is completely free. No account registration required, no payment, no usage limits. All features can be used directly, including complete program configuration, log management settings, environment variable configuration, config file download, etc. The tool runs locally in the browser and doesn't collect any user data.
📚

How to deploy the generated configuration file?

Deployment steps: 1) Download the generated configuration file; 2) Upload file to server's /etc/supervisor/conf.d/ directory; 3) Ensure filename ends with .conf; 4) Run supervisorctl reread to reload configuration; 5) Run supervisorctl update to apply new configuration; 6) Use supervisorctl status to check program status. After modifying configuration file, reread and update commands must also be executed.

🔗Related Documents

📖Supervisor Official Documentation-Complete guide to Supervisor configuration and usage
🔧Supervisor Program Configuration-Detailed reference for [program:x] section settings
🔍Supervisor Events and Notifications-Event listener system for process state changes

User Comments

0 / 2000
Loading...