[Info-vax] openvms and xterm
motk
meh at meh.meh
Sun Apr 21 20:06:37 EDT 2024
OK, let's have example systemd unit file. Let's pick one out of my
proxmox cluster. Gaze upon it and internalize what a pain in the neck
this would be in sysv or inittab or whatever you think is simple and
elegant. Everything here is extensively documented and exhaustively
QA'd. I'm not suggesting this is what everyone needs but imaging some
weird perfect Unix world where it's basically plan9 is delusional in 2024.
root at pve:/etc/systemd/system# root at pve:/etc/systemd/system# cat
pve-manager.service
[Unit]
Description=PVE guests
ConditionPathExists=/usr/bin/pvesh
RefuseManualStart=true
RefuseManualStop=true
Wants=pvestatd.service
Wants=pveproxy.service
Wants=spiceproxy.service
Wants=pve-firewall.service
Wants=lxc.service
After=pveproxy.service
After=pvestatd.service
After=spiceproxy.service
After=pve-firewall.service
After=lxc.service
After=pve-ha-crm.service pve-ha-lrm.service
[Service]
Environment="PVE_LOG_ID=pve-guests"
ExecStartPre=-/usr/share/pve-manager/helpers/pve-startall-delay
ExecStart=/usr/bin/pvesh --nooutput create /nodes/localhost/startall
ExecStop=-/usr/bin/vzdump -stop
ExecStop=/usr/bin/pvesh --nooutput create /nodes/localhost/stopall
Type=oneshot
RemainAfterExit=yes
TimeoutSec=infinity
[Install]
WantedBy=multi-user.target
Alias=pve-manager.service
--
motk
More information about the Info-vax
mailing list