[Pkg-acpi-devel] Bug#647556: acpid: please include systemd .service and .socket files
helmut at subdivi.de
Thu Nov 3 21:07:45 UTC 2011
Please support systemd in acpid. Thankfully upstream has already added
basic support. Quoting man 8 acpid:
| For faster startup, this socket can be passed in as stdin so that
| acpid need not create the socket. In addition, if a socket is passed
| in as stdin, acpid will not daemonize. It will be run in foreground.
| This behavior is provided to support systemd(1).
So everything left to do is add socket and service descriptions.
$ cat acpid.socket
Description=ACPID Listen Socket
$ cat acpid.service
Description=ACPI event daemon
This way systemd grabs the /run/acpid.socket and passes it to acpid as
stdin (due to StandardInput=socket) triggering the faster startup
mentioned in the manual page. I verified that acpid starts correctly
using these files. They should be placed in /lib/systemd/system/.
More information about the Pkg-acpi-devel