Runner-42 / HomeDomotica

HomeDomitica system based on Raspberry Pi
0 stars 0 forks source link

"STOP" event not removed from input queue #14

Open Runner-42 opened 5 years ago

Runner-42 commented 5 years ago

When running domstop on DomoticaPiTstMgmt, the lightsimulator process stops as expected, but the event is not released from the queue IQ_RPI_LIGHTSIMULATOR_TSTMGMT. As a result, this process automatically stops every time it's started since the STOP event is read.

Runner-42 commented 5 years ago

Problem seems not to be linked to the application but to the stop process. It appears that the service is stopped (on OS level) before it can process the "STOP" event. Observation 1: No "Stopping" event is logged in the log file. This implies that the application is not stopping as expected. Observation 2: When the application is running, and a "STOP" event is put on the queue manually, the application is stopping as expected, including logging a "Stopping" message in the log file Observation 3: If the application is started without making used of the service, the application behaves as expected.