07-22-2018, 11:05 AM
(07-22-2018, 05:08 AM)mezcal Wrote: Hello,
I think your post is better then DRONE7s one. I think the line Wants=lircd.service in the service file should be in the [Unit] section.
It is not necessary to create second irexec.service. There is a file /etc/systemd/system/multi-user.target.wants/irexec.service. You can modify it to start as a pi user.
Code:sudo systemctl edit irexec
Code:[Service]
User=pi
Group=pi
And the commands will be in the file /etc/lirc/irexec.lircrc. If you need use another command file edit it:
Code:[Service]
User=pi
Group=pi
ExecStart=
ExecStart=/usr/bin/irexec /home/pi/.lircrc
That s it.
Thanks, I'll have a look at this.