# ACPI hotplug daemon — handles ACPI-driven CPU/memory/PCI hotplug # events. Useful on KVM/cloud where vCPUs and memory may be hot-added. # Replaces /lib/svc/manifest/platform/amd64/acpihpd.xml. [service] name = "acpihpd" description = "ACPI hotplug daemon" type = "daemon" [exec] start = "/etc/zyginit/services/acpihpd/start.sh" [dependencies] # acpihpd-check disables this service on platforms without ACPI # hotplug, so by the time we get here we're on a supported platform. requires = ["filesystem", "acpihpd-check"] [restart] # A real crash on supported platforms is rare enough that manual # `zygctl restart` is fine. (Platform-conditional disable now lives # in acpihpd-check, so this is purely about runtime crash policy.) on = "never" [contract] param = ["inherit", "noorphan"] fatal = ["hwerr"] #!/bin/sh # Platform check lives in the acpihpd-check oneshot service, which # runs before this and disables acpihpd when /devices/fw/acpidr@0 is # absent. If we got here, the daemon is supported on this platform — # just exec it. # # Hammerhead flattens the platform-lib tree: cmd/acpihpd installs to # /usr/lib/acpihpd (via $(USR_PSM_LIB_DIR), which Hammerhead's # Makefile.psm redefines as $(ROOT)/usr/lib for Phase 2 flat paths). exec /usr/lib/acpihpd