Generate Supervisor process management configuration files
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
- Basic Settings: Enter program name, command to execute, working directory, and user to run as
- Startup Options: Configure auto-start on boot, restart strategy, and retry attempts
- Log Configuration: Set log file paths, max file sizes, and backup rotation counts
- Deploy: Download the config file to /etc/supervisor/conf.d/ and reload Supervisor
Technical Details
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.
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 Documentation
- Supervisor Official Documentation - Complete guide to Supervisor configuration and usage
- Supervisor Program Configuration - Detailed reference for [program:x] section settings
- Supervisorctl Commands - Command-line interface reference for managing processes
- Supervisor Best Practices - Tips and best practices for production deployments
- Supervisor Events and Notifications - Event listener system for process state changes