From 892b3f6ad622e536d75050fd2a3ae5243f4c4bf5 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 4 Oct 2012 23:26:01 -0400 Subject: [PATCH] acpid: Skip (rather than fail) if /proc/acpi doesn't exist E.g. EC2 instances don't have ACPI. --- modules/services/hardware/acpid.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/services/hardware/acpid.nix b/modules/services/hardware/acpid.nix index 2002df6a303c..57dc799ca8c0 100644 --- a/modules/services/hardware/acpid.nix +++ b/modules/services/hardware/acpid.nix @@ -105,6 +105,8 @@ in daemonType = "fork"; exec = "acpid --confdir ${acpiConfDir}"; + + unitConfig.ConditionPathExists = [ "/proc/acpi" ]; }; };