👁

Supervisor-Config-Generator

Generieren Supervisor process management configuration Fichiers

Quick Starten Templates

Basic Konfiguration

Programmname
Befehl
Verzeichnis
Benutzer
Nummer of Processes
Set zu > 1 für process pool

Startup Behavior

Auto Starten
Automatisch Restart
Auf Unexpected Exit
Auto restart program nach unexpected exit
Starten Retries
Stoppen Signal
TERM
Stoppen Wait Seconds
Sekunden

Log Management

Stdout Log Datei
Stderr Log Datei
Log Datei Max Bytes
Log Datei Backups

Advanced Einstellungen

Priorität
Lower numbers = higher Priorität (0-999)
UmgebungsvariablenOne variable per line, Format: KEY="value"

Generated Konfiguration

Speichern dies Fichier zu /etc/supervisor/conf.d/ und run: supervisorctl reread && supervisorctl update

War ist Supervisor

Supervisor ist ein process control system für Unix-wie operating systems das ermöglicht Utilisateurs zu monitor und control plusieurs processes. Es bietet ein einfach way zu manage lang-running processes, automatically restart crashed programs, und manage process groups. Supervisor ist particularly useful für web applications, background workers, und daemon processes das benötigen zu run continuously.

Funktionen

⚙️

Vollständig Program Konfiguration

Configure Alle Supervisor program Einstellungen einschließlich command, Répertoire, Utilisateur, process count mit visual interface mitout memorizing INI syntax
🔄

Auto Restart Strategies

Flexible restart policies: restart on unexpected exit, always restart, or never restart. Configure retry attempts and Stoppen signals für robust process management
📝

Comprehensive Journal Management

Configure stdout et stderr Journal Dateien mit rotation Einstellungen, max Datei Größe, et backup counts to manage disk space efficiently
🎯

Erweitert Process Control

Set process priorities, environment variables, and plusieurs process instances für scalable daemon management mit production-ready configurations

📋Verwendungsanleitung

1️⃣
Basic Einstellungen
Eingeben program Name, command zu execute, working Répertoire, und Utilisateur zu run als
2️⃣
Startup Optionen
Configure auto-Starten auf boot, restart strategy, und retry attempts
3️⃣
Log Konfiguration
Set Journal Datei Chemins, max Datei sizes, and backup rotation counts
4️⃣
Deploy
Herunterladen die config Fichier zu /etc/supervisor/conf.d/ und reload Supervisor

📚Technische Einführung

🔧Supervisor Architecture

Supervisor verwendet ein client-server model mit supervisord daemon monitoring processes und supervisorctl CLI für control. Es reads Konfiguration Fichiers von /etc/supervisor/conf.d/ Répertoire. Each program ist defined in ein INI-formatieren Konfiguration Fichier mit sections wie [program:Name]. Supervisor monitors process PIDs und restarts programs according zu 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 Heures to attempt starting a failing process befüre giving up.

📊Journal Rotation und Management

Supervisor bietet built-in Journal rotation mit stdout_logfile_maxbytes und stdout_logfile_backups Einstellungen. Wann Journal Fichier reaches max Größe, es's rotated und old Fichiers sind kept according zu backup count. ce prevents disk Leerzeichen issues. Journaux kann sein monitored in real-Heure Verwendung 'supervisorctl tail -f programname' command.

🎯Priority und Process Groups

Priority Wert (0-999) determines startup und shutdown order, mit lower numbers starting Erste. numprocs erstellt ein process pool mit plusieurs instances von die same program. Environment variables kann sein set per program Verwendung KEY="Wert" formatieren. process_name template variables wie %(program_name)s und %(process_num)02d aktivieren dynamic naming.

Frequently Asked Questions

Wofuer wird der Supervisor Config Generator genutzt?

Er erstellt Supervisor-Konfigurationsdateien fuer Prozessmanagement auf Linux/Unix. Sie definieren Programme, Auto-Starten, Journaux, Prioritaeten und Umgebungsvariablen ueber eine visuelle Oberflaeche.
💬

Wie benutze ich das Tool?

1) Programmnamen und Kommando eingeben. 2) Arbeitsverzeichnis/Benutzer setzen. 3) Autostart/Restart einstellen. 4) Journal-Pfade definieren. 5) Prioritaet und Environment setzen. 6) Datei herunterladen und nach /etc/supervisor/conf.d/ legen. 7) supervisorctl reread && update ausfuehren.
🔍

Unterschied der autorestart Optionen?

unexpected: nur Neustart bei Fehler (empfohlen). true: immer neu starten. false: nie automatisch neu starten.
💡

Ist das Tool kostenlos?

Ja, keine Registrierung oder Limits. Alle Einstellungen und Downloads laufen lokal ohne Datenerfassung.
📚

Wie deploye ich die Datei?

Datei herunterladen, nach /etc/supervisor/conf.d/ mit .conf-Endung kopieren, supervisorctl reread, dann supervisorctl update und mit supervisorctl Statut pruefen.

🔗Verwandte Dokumente

User Comments

0 / 2000
Loading...