Skip to content

sky96111/PveStartup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

PveStartup

A PVE VM Startup Manager with dependency chain

Config example

# 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

systemd example

[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

About

A Proxmox VE VM Startup Manager with dependency chain

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages