Skip to content

Background process stops after 60 seconds #181

@Joshude

Description

@Joshude

Hello!

I have a problem running the service in the background. When starting the tool with ./speed-cam.py everythign runs fine. But when i start it with the service (or after a reboot with the start after boot enabled) it runs only for a minute and then exits.
The speed-web is running fine after a longer period of time.

when running sudo ./speed-cam.sh supervisorctl start i get the following error:

pi@speedcamera:~/speed-camera$ sudo ./speed-cam.sh supervisorctl start
sed: can't read /home/root/speed-camera/supervisor/speed-cam.conf: No such file or directory
sed: can't read /home/root/speed-camera/supervisor/speed-cam.conf: No such file or directory
-----------------------------------------------
./speed-cam.sh supervisorctl supervisorctl

Usage: ./speed-cam.sh [Option]
...

when running sudo ./speed-cam.sh start i get the following:

pi@speedcamera:~/speed-camera$ sudo ./speed-cam.sh start              
sed: can't read /home/root/speed-camera/supervisor/speed-cam.conf: No such file or directory
sed: can't read /home/root/speed-camera/supervisor/speed-cam.conf: No such file or directory
-----------------------------------------------
./speed-cam.sh supervisorctl start
speed-cam: started

But again, after a minute the process stops:

pi@speedcamera:~/speed-camera$ /home/pi/speed-camera/speed-cam.sh status
-----------------------------------------------
/home/pi/speed-camera/speed-cam.sh supervisorctl status
speed-cam                        EXITED    May 12 01:04 PM
speed-web                        RUNNING   pid 312, uptime 0:16:41

Any help is appreciated :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions