For some time the IREXEC service fails to start automatically at boot time on my raspberryPI.
When checking the state after booting:
$this->bbcode_second_pass_code('', '
systemctl status irexec
● irexec.service - LIRC command handler
Loaded: loaded (/usr/lib/systemd/system/irexec.service; enabled)
Active: failed (Result: exit-code) since Thu 1970-01-01 01:00:18 CET; 44 years 10 months ago
Process: 145 ExecStart=/usr/bin/irexec --daemon (code=exited, status=1/FAILURE)
')
After the boot I can start the service without problem.
With journalctl I have found this line:
$this->bbcode_second_pass_code('', '
[/usr/lib/systemd/system/irexec.service:11] Unknown lvalue 'Wants' in section 'Install'
')
I've read around the net to move the "Wants" and put it in the section Install Unit. The error no longer appears in the logs but the service still does not start.
How can I fix this?