I have two python scripts.
1) reads the data from SQLite database
2) writes to database using a threading module and queue
I have put these in the rc.local and are executing fine on reboot. But, if I unplug the power suddenly and re-plug it, only reading script is executing. Is it because of the thread and queue (both are not terminating properly due to power off) that i'm using?