Files

9 lines
332 B
Python

#!/usr/bin/env python3
"""Wrapper: graceful shutdown of pve2 (DL380p Gen8) via Proxmox API.
Silent on success, sends email on failure.
Used by cron job server-stop (no_agent mode)."""
import sys, os
script = os.path.join(os.path.dirname(__file__), "host-power.py")
os.execvp(sys.executable, [sys.executable, script, "stop"])