All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 9836] New: triggerhappy: systemd unit broken
@ 2017-04-26  9:01 bugzilla at busybox.net
  2017-04-26  9:20 ` [Buildroot] [Bug 9836] " bugzilla at busybox.net
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2017-04-26  9:01 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=9836

            Bug ID: 9836
           Summary: triggerhappy: systemd unit broken
           Product: buildroot
           Version: 2017.02.1
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
          Assignee: unassigned at buildroot.uclibc.org
          Reporter: posted at heine.so
                CC: buildroot at uclibc.org
  Target Milestone: ---

I'm using triggerhappy in combination with systemd and a bash based system (no
busybox).


The systemd unit fails with this error message:

"Error opening '/dev/input/event*': No such file or directory"


The systemd unit has the start command defined as follows:

ExecStart=/usr/sbin/thd --triggers /etc/triggerhappy/triggers.d --socket
/var/run/thd.socket --user nobody /dev/input/event*


If you run the command directly from bash it is working, I guess because bash
is already expanding the wildcard.


thd started supporting Wildcards in Version 0.5.0. with the option
"--deviceglob" [1]

before it proposed a wrapper script for the systemd unit added in this commit:
[2]

I don't know if the unit currently supplied with buildroot ever worked, but not
with the thd version currently used.

Since 0.5.0 the systemd unit should be like this: [3]


So I could supply a patch but I'm not sure what is preferable. Fix the systemd
unit supplied with the current version included in buildroot 2017.02.1. Or bump
the version and provide the new style unit?

Regards,
Michael

[1]https://github.com/wertarbyte/triggerhappy/commit/c9b6556bd45529eebfabcad3b843beb185aca5fc
[2]https://github.com/wertarbyte/triggerhappy/commit/47a9e4e842676c48d056aefe623af1d29a9b0e5e
[3]https://github.com/wertarbyte/triggerhappy/commit/06720d2305bedc7fcef8b18919f5c73a73164f85

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 9836] triggerhappy: systemd unit broken
  2017-04-26  9:01 [Buildroot] [Bug 9836] New: triggerhappy: systemd unit broken bugzilla at busybox.net
@ 2017-04-26  9:20 ` bugzilla at busybox.net
  2017-04-26 15:07 ` bugzilla at busybox.net
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2017-04-26  9:20 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=9836

--- Comment #1 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
(In reply to Michael Heinemann from comment #0)

Thanks for your detailed report! I'd say bump the version and use the new unit
is most likely the right option here.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 9836] triggerhappy: systemd unit broken
  2017-04-26  9:01 [Buildroot] [Bug 9836] New: triggerhappy: systemd unit broken bugzilla at busybox.net
  2017-04-26  9:20 ` [Buildroot] [Bug 9836] " bugzilla at busybox.net
@ 2017-04-26 15:07 ` bugzilla at busybox.net
  2017-05-07 14:06 ` bugzilla at busybox.net
  2017-05-08 12:23 ` bugzilla at busybox.net
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2017-04-26 15:07 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=9836

Michael Heinemann <posted@heine.so> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |posted at heine.so

--- Comment #2 from Michael Heinemann <posted@heine.so> ---
Created attachment 7046
  --> https://bugs.busybox.net/attachment.cgi?id=7046&action=edit
patch to bump version to 0.5.0

Proposed fix to bump version and fix systemd unit

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 9836] triggerhappy: systemd unit broken
  2017-04-26  9:01 [Buildroot] [Bug 9836] New: triggerhappy: systemd unit broken bugzilla at busybox.net
  2017-04-26  9:20 ` [Buildroot] [Bug 9836] " bugzilla at busybox.net
  2017-04-26 15:07 ` bugzilla at busybox.net
@ 2017-05-07 14:06 ` bugzilla at busybox.net
  2017-05-08 12:23 ` bugzilla at busybox.net
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2017-05-07 14:06 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=9836

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #3 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> ---
Thanks, I've applied your patch as of
https://git.buildroot.org/buildroot/commit/?id=3e23b1c9bb74bf1edf3f71d5c1e6e5e364e0821a.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [Bug 9836] triggerhappy: systemd unit broken
  2017-04-26  9:01 [Buildroot] [Bug 9836] New: triggerhappy: systemd unit broken bugzilla at busybox.net
                   ` (2 preceding siblings ...)
  2017-05-07 14:06 ` bugzilla at busybox.net
@ 2017-05-08 12:23 ` bugzilla at busybox.net
  3 siblings, 0 replies; 5+ messages in thread
From: bugzilla at busybox.net @ 2017-05-08 12:23 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=9836

--- Comment #4 from Michael Heinemann <posted@heine.so> ---
Great. Thank you!

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-08 12:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26  9:01 [Buildroot] [Bug 9836] New: triggerhappy: systemd unit broken bugzilla at busybox.net
2017-04-26  9:20 ` [Buildroot] [Bug 9836] " bugzilla at busybox.net
2017-04-26 15:07 ` bugzilla at busybox.net
2017-05-07 14:06 ` bugzilla at busybox.net
2017-05-08 12:23 ` bugzilla at busybox.net

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.