A PVE VM Startup Manager with dependency chain
# Proxmox VE Connectoin Config
host = "127.0.0.1"
username = "root@pam"
password = "xxxxxxxx"
# Device List
[devices.gate]
node = "pve"
id = "103"
start_order = 1
shutdown_order = 3
strict_depend = false
[devices.nas]
node = "pve"
id = "101"
start_order = 2
shutdown_order = 2
strict_depend = true
[devices.srv]
node = "pve"
id = "102"
start_order = 3
shutdown_order = 1
strict_depend = true[Unit]
Description=Proxmox VE VM Startup/Shutdown Manager
After=pveproxy.service
Wants=pveproxy.service
DefaultDependencies=no
Before=shutdown.target reboot.target halt.target
Conflicts=shutdown.target reboot.target halt.target
[Service]
Type=oneshot
WorkingDirectory=/opt/pve-startup
ExecStart=/opt/pve-startup/PveStartup startup
ExecStop=/opt/pve-startup/PveStartup shutdown
RemainAfterExit=yes
TimeoutStartSec=900
TimeoutStopSec=900
[Install]
WantedBy=multi-user.target