immortalwrt / homeproxy

The modern ImmortalWrt proxy platform for ARM64/AMD64 (powered by sing-box)
GNU General Public License v2.0
524 stars 155 forks source link

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

Closed thisIsIan-W closed 1 month ago

thisIsIan-W commented 2 months ago

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 commented 1 month ago

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

HenTele commented 1 month ago

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

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

thisIsIan-W commented 1 month ago

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

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

Much appreciated!