Package: acpid
Version: 1:2.0.11-1
Severity: wishlist
Tags: patch

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
[Unit]
Description=ACPID Listen Socket

[Socket]
ListenStream=/run/acpid.socket

[Install]
WantedBy=sockets.target
$ cat acpid.service
[Unit]
Description=ACPI event daemon
Requires=acpid.socket

[Service]
StandardInput=socket
ExecStart=/usr/sbin/acpid
$

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/.

Helmut



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to