Add Proxmox task controller script and configuration files
This commit is contained in:
19
proxmox-task.service
Normal file
19
proxmox-task.service
Normal file
@@ -0,0 +1,19 @@
|
||||
[Unit]
|
||||
Description=Proxmox Task Controller
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/proxmox-task
|
||||
ExecStart=/usr/bin/python3 /opt/proxmox-task/proxmox_task_controller.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
# 环境变量文件
|
||||
EnvironmentFile=/opt/proxmox-task/.env
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user