[Main]
Type = classic
Version = 0.1.0
Description = "ACPI fake key daemon"
User = ( root )
Depends = ( modules )
Options = ( log )

[Start]
Execute = (
	# OpenRC start_pre: ensure uinput is present
	foreground {
		ifelse { test -d /sys/devices/virtual/misc/uinput } { exit 0 }
		if { modprobe -q uinput }
	}
	execl-cmdline -s { /usr/sbin/acpi_fakekeyd ${Args} }
)

[Logger]
RunAs = s6log
Backup = 3
MaxSize = 2000000
Timestamp = tai
Destination = /var/log/acpi-fakekey

[Environment]
# Optional arguments for acpi_fakekeyd
Args = !-f
