Topic: Starting python script as a daemon blocks boot process?

Colleagues,

I have 2 python scripts which must be started on boot. One of them starts succesfully, no issues.
Second, when specified like this in init.d

/usr/local/serialcontroller.py --port=/dev/ttyATH0

will block the boot process. Only if I start it in background

/usr/local/serialcontroller.py --port=/dev/ttyATH0 &

It works. You may ask, what is my problem? 

So the problem is that if I start this script in background, then "reboot" command stops working and if you make changes to filesystem then do a reset then all changes are lost.

So I just hoped if there any tricks regarding python or boot sequnce at all (the script above starts with priority 23)

Re: Starting python script as a daemon blocks boot process?

By default the internal serial port is attached as a console.  You have to disable that to use it for other purposes.

Re: Starting python script as a daemon blocks boot process?

Can help about the reboot issue, but all processes started during boot are supposed to act as daemons and run in the background; otherwise, the booting sequence waits until each process becomes a daemon.