-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ftppush.sh does not detect already running script #623
Comments
I've modified the script to persist some extra information in the bootstrap of 'cron' code branch. Added just below running process detection:
Response (reformatted for better readability):
While
|
We could create a semaphore file in /tmp and check if it exists when the script starts. |
Semaphore I think would do the trick. However, a bit by trial-and-error I think I made the script working. Long story short, I did it by replacing:
to:
so it is either After doing this change cam seems to be running stable for more than 2 days and counting: |
I will add this change to the next release. |
@roleoroleo I'd be more than happy to debug it a bit more in my spare time. I still feel a bit anxious not understanding why it is behaving like this. |
For testing purpose, you can edit the file /var/spool/cron/crontabs/root |
Running process detection malfunctioning due to `ps` output being truncated
I think I got do the root of the problem. Looking at grepping part:
the
Hence line has been truncated, it did not match the grep predicate. Adding |
Thank you for your work. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Environment:
Firmware Version | 0.2.6
Base Version | 9.0.19.02_202007141512
Model Suffix | y21ga
It looks
ftppush.sh
detection of already running script fails causing it to duplicate. Caught this while looking for potential reasons for spontaneous reboots.Example 'ps check':
while looking at the code there should be only one instance running. Debug in progress :)
The text was updated successfully, but these errors were encountered: