运维:固定虚拟PCI设备并补充过夜观察与电源策略

This commit is contained in:
songyiming committed 2026-11-05 19:15:31 +08:00
1 parent 6f2ff67300
commit 65f92df8b7
42 files changed
+1705

No files matched your search

@@ -0,0 +1,7 @@
[Journal]
Storage=persistent
SystemMaxUse=64M
SystemKeepFree=256M
RuntimeMaxUse=16M
MaxRetentionSec=7day
SyncIntervalSec=30s
@@ -0,0 +1,21 @@
[Unit]
Description=VDI overnight reboot and health observer
After=local-fs.target systemd-journald.service systemd-pstore.service
[Service]
Type=simple
User=armbian
SupplementaryGroups=systemd-journal
Environment=HOME=/home/armbian
Environment=VDI_OBSERVER_INTERVAL=60
ExecStartPre=+/usr/local/libexec/vdi-observer-pstore
ExecStart=/home/armbian/vdi-terminal/bin/vdi-overnight-observer
Restart=on-failure
RestartSec=5
Nice=10
IOSchedulingClass=idle
NoNewPrivileges=true
TimeoutStopSec=15
[Install]
WantedBy=multi-user.target