0
Ruan Carlos

Problem with script on background

Recommended Posts

 

I have a problem with a script python that is running in the background, this script needs to run all the time without stopping, but the script freezes or stops without error,  when I change for another card, it works for a few days and then the same thing happens, however the debian system continues to work perfectly, only the background script stops working, I already debugged the code and it has no problem making it stop. my sdcard is MicroDrive class 10, 8Gb. what could be causing this problem?

Share this post


Link to post
Share on other sites

Did you try to run this script on a completely different machine for a longer period of time?
By the way. an armbianmonitor -u output would be a nice thing to get any chance to investigate this further...

Share this post


Link to post
Share on other sites
19 hours ago, Ruan Carlos said:

but the script freezes or stops without error

How did you figured that out ? Did the process no present anymore in "ps -ef" ?

Do you grabbing log of both stderr/stdout output of the process, something like "python thescript.py > thescript.log 2>&1 &" ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0