# restart **Repository Path**: lsy_admin/restart ## Basic Information - **Project Name**: restart - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-10-27 - **Last Updated**: 2026-10-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Restart - Program Guardian and Restart Tool A desktop application developed using Python and CustomTkinter, designed to monitor and automatically restart specified programs. ## Features - **Process Monitoring**: Real-time monitoring of the running status of specified programs - **Automatic Restart**: Automatically restart after the program exits unexpectedly - **Graphical Interface**: Simple and modern GUI interface, easy to operate - **Working Directory Settings**: Supports configuring independent working directories for each program - **Restart Policy**: Supports configuring the number of restarts and time intervals - **Process Tree Cleanup**: Completely clean up the process tree upon exit - **Configuration Persistence**: Program configuration is automatically saved ## Environment Requirements - Python 3.8+ - Windows Operating System ## Install Dependencies ```bash pip install -r requirements.txt ``` ## Usage 1. Run the main program: ```bash python main.py ``` 2. Add programs to monitor: - Click the "Add Program" button - Select the executable file path - Set working directory (optional) - Configure restart policy 3. Start monitoring: The program will automatically run monitoring threads in the background ## Configuration Instructions - Program configuration files are saved locally - Support adding, deleting, and modifying monitored programs - View program running status and restart logs in real-time ## Project Structure ``` restart/ ├── main.py # Main program entry, contains all business logic ├── build.bat # Windows build script └── requirements.txt # Python dependencies ``` ## Tech Stack - **GUI Framework**: CustomTkinter (Modern Tkinter) - **Concurrency Handling**: Python threading - **Process Management**: psutil (process search and tree cleanup) ## License MIT License