|
From: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX - 2013-04-16 18:07:45
|
> On 04/09/13 13:16, XXXXXXXXXXXXXXXX wrote: > I'm trying to run multiple > LIRC instances (one for each device) in a >> systemd service. >> >> This is the error I'm getting: >> >> lircd: could not assign address to socket >> lircd: Permission denied >> > .... >> >> This is what my service file looks like: >> >> [Unit] >> Description=LIRC Daemon >> After=network.target >> >> [Service] >> Type=oneshot >> EnvironmentFile=/etc/sysconfig/lirc >> ExecStartPre=/bin/mkdir -p /run/lirc >> ExecStartPre=/bin/rm -f /dev/lircd /dev/lircd1 >> ExecStartPre=/bin/rm -f /run/lirc/lircd /run/lirc/lircd1 >> ExecStartPre=/bin/ln -s /run/lirc/lircd /dev/lircd >> ExecStartPre=/bin/ln -s /run/lirc/lircd1 /dev/lircd1 >> ExecStart=/usr/sbin/lircd --device=/dev/input/event12 >> --output=/run/lirc/lircd1 --pidfile=/run/lirc/lircd1.pid >> --driver=devinput --listen=8765 /etc/lirc/lircd.conf >> ExecStart=/usr/sbin/lircd --device=/dev/input/event10 >> --output=/run/lirc/lircd --pidfile=/run/lirc/lircd.pid --driver=devinput >> --connect=localhost:8765 /etc/lirc/lircd.conf > > Two processes are trying to bind to the same port. > Change one "8765" to something else (8766?) or just leave out one of the > --listen arguments. > > Thanks for your message. If I understand this correctly. 8765 is the default listening port and connection port. So --listen=8765 always defaults to --listen. I tried both --listen and --listen=8765 but it still didn't work http://www.lirc.org/html/configure.html |