Skip to content
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

Restarting the homeproxy service will automatically clear the cron job list that I have already configured. #161

Closed
thisIsIan-W opened this issue Aug 23, 2024 · 3 comments

Comments

@thisIsIan-W
Copy link

OS version:

ImmortalWrt 23.05.2 r27625-416c8c5c91 / LuCI openwrt-23.05 branch git-24.079.19999-26165fd

Luci-app-homeproxy version:

luci-app-homeproxy_git-24.226.23824-9a48dd3_all

Steps to reproduce this issue:

  1. Install luci-app-homeproxy;
  2. Set scheduled tasks using the crontab -e command;
  3. Executing service homeproxy restart or directly rebooting the system;
  4. All the scheduled tasks I had previously set are gone.
@wd
Copy link

wd commented Sep 16, 2024

看这个代码好像没问题的样子,停止的时候只会删除那行能匹配的。
https://github.com/immortalwrt/homeproxy/blob/master/root/etc/init.d/homeproxy#L300
你或许可以自己 debug 下原因。

@HenTele
Copy link

HenTele commented Oct 4, 2024

5 15,16,23 * * * pkill -9 'home''proxy/scripts/update_resources.sh' ;find '/var/run/home''proxy/' -name update_resources-china_*.lock -delete ;eval '/etc/home''proxy/scripts/update_crond.sh'

写成这样,就匹配不到了。
eval '/etc/home''proxy/scripts/update_crond.sh'

@thisIsIan-W
Copy link
Author

5 15,16,23 * * * pkill -9 'home''proxy/scripts/update_resources.sh' ;find '/var/run/home''proxy/' -name update_resources-china_*.lock -delete ;eval '/etc/home''proxy/scripts/update_crond.sh'

写成这样,就匹配不到了。 eval '/etc/home''proxy/scripts/update_crond.sh'

Much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants