Lirc doesn't run automatically after the boot

Based on the output that you posted it can be concluded that the service lircd is running.

No sorry.
Now i reboot all and i post the situation

here the situation after the reboot

the lircd service is failed.

If i want start it i have to activate manually

As long as the service is not started after booting - what is returned by

sudo systemctl status lircd.service

This is the file lircd


So we are again arrived at the same question as before.
Is the listen address/port for the service already in use ?

i think no.
how can i control it?

I dont’ understand.
If i turn on LIRC manually without problems, why doesn’t LIRC service start automatically at the reboot?

I tried to create e bash script so:

#!/bin/bash
### BEGIN INIT INFO
# Provides:          avvio_lirc.sh
# Required-Start:    hal
# Required-Stop:     
# Should-Start:      
# Should-Stop:       
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Avvio automatico LIRC
# Description:      Avvio automatico LIRC
### END INIT INFO

/etc/init.d/lircd start


exit 0

i activate all so

sudo chmod +x /etc/init.d/avvio_lirc.sh
sudo systemctl enable avvio_lirc.sh
sudo update-rc.d avvio_lirc.sh defaults

I solved by delaying the execution of the start command in the script by the command sleep 20

</
#!/bin/bash

BEGIN INIT INFO

Provides: avvio_lirc.sh

Required-Start: hal

Required-Stop:

Should-Start:

Should-Stop:

Default-Start: 2 3 4 5

Default-Stop: 0 1 6

Short-Description: Avvio automatico LIRC

Description: Avvio automatico LIRC

END INIT INFO

/etc/init.d/lircd start

sleep 20
exit 0

Thank’s anyway

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.