I'm trying to automatically run an application I made at boot.
This is a GUI for LogitechMediaServer. So, my program needs LogitechMediaServer and Squeezelite to be started first. These are already successfuly started at boot time, as services.
First, I tried to add the command line in rc.local, which is run last in the init process.
It didn't work, so I tried to write an init script that run my program.
In both case, my program can't start because it can't connect to LogitechMediaServer though LMS and Squeezelite have been started just before.
It is written in python, and it tries to connect on port 9090 of the local host (using 127.0.0.1 or the local IP adress). The exception is "socket.error: [Errno 111] Connection refused".
If I try to run the same command line or init script later, after logon, my program runs without any problem.