FS#46442 - [acpid] refuses to load event configuration files if name contains a extension.

Attached to Project: Community Packages
Opened by Lance (Raansu) - Friday, 25 September 2015, 23:35 GMT
Last edited by Sébastien Luttringer (seblu) - Tuesday, 19 January 2016, 00:14 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: ACPID refuses to load event configuration files if name contains a extension. I cannot find any documentation where this is an intended feature so I believe it to be a bug, especially when tutorials found on the web tend to instruct one to create a named file with a '.conf' as part of the event file name.


Additional info:

* package version(s)
acpid-2.0.25


* config and/or log files etc.

Below is a snip of what is happening, if this same exact event file is renamed to not have the '.conf' extension it should work (unless the actual event file was written wrong).

```
[raansu@chromebook-server ~]$ sudo systemctl status -l acpid
● acpid.service - ACPI event daemon
Loaded: loaded (/usr/lib/systemd/system/acpid.service; enabled; vendor preset: disabled)
Active: active (running) since Fri 2015-09-25 16:28:39 PDT; 4s ago
Docs: man:acpid(8)
Main PID: 673 (acpid)
CGroup: /system.slice/acpid.service
└─673 /usr/bin/acpid --foreground --netlink

Sep 25 16:28:39 chromebook-server systemd[1]: Started ACPI event daemon.
Sep 25 16:28:39 chromebook-server acpid[673]: starting up with netlink and the input layer
Sep 25 16:28:39 chromebook-server acpid[673]: skipping conf file /etc/acpi/events/battery.conf
Sep 25 16:28:39 chromebook-server acpid[673]: 1 rule loaded
Sep 25 16:28:39 chromebook-server acpid[673]: waiting for events: event logging is off
[raansu@chromebook-server ~]$
```



Steps to reproduce:

Create any acpid event file located in /etc/acpi/events/ with the '.conf' extension in the name. Reload acpid and watch it skip loading that particular event file. Rename the same file to not have the '.conf' extension, reload acpid again and watch it load the same event correctly. No change to the contents of said file.
This task depends upon

Closed by  Sébastien Luttringer (seblu)
Tuesday, 19 January 2016, 00:14 GMT
Reason for closing:  Upstream
Additional comments about closing:  Deal directly with upstream

Loading...