You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
本来是将NAS的下载点mount到了openwrt本地/mnt/downloads,供Aria2下载用,用了很久也没啥问题。
直到最近,NAS的电源坏了,Aria2把本地/mnt/downloads写炸了。
于是想到用on-download-start 来钩一个mount状态检查脚本。
但无论用什么shebang,都报错No such file or directory,
Fri Mar 29 11:25:05 2024 daemon.info aria2: Aria2 will run with user 'root'.
Fri Mar 29 11:25:06 2024 daemon.info aria2c[5182]: jail: jail (5183) exited with exit: 0
Fri Mar 29 11:25:06 2024 daemon.info aria2c[9836]: jail: exec-ing /usr/bin/aria2c
Fri Mar 29 11:25:16 2024 daemon.err aria2c[9836]: Could not execute user command: /etc/aria2/pre_check.sh: No such file or directory
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
本来是将NAS的下载点mount到了openwrt本地/mnt/downloads,供Aria2下载用,用了很久也没啥问题。
直到最近,NAS的电源坏了,Aria2把本地/mnt/downloads写炸了。
于是想到用on-download-start 来钩一个mount状态检查脚本。
但无论用什么shebang,都报错No such file or directory,
试了 #!/bin/sh,#!/bin/ash,#!/usr/bin/env /bin/busybox ash,#!/usr/bin/busybox ash
钩子也试了
on-download-start=/etc/aria2/pre_check.sh
on-download-start=sh /etc/aria2/pre_check.sh
on-download-start=ash /etc/aria2/pre_check.sh
on-download-start=/bin/sh /etc/aria2/pre_check.sh
on-download-start=/bin/ash /etc/aria2/pre_check.sh
等。
/etc/aria2/ 是我aria2的工作目录,配置文件,log,session都在这。
脚本权限755,在cli中测试也都正常,但就是无法在aria2中被调用。
lrwxrwxrwx 1 root root 7 Sep 28 23:47 /bin/sh -> busybox
lrwxrwxrwx 1 root root 7 Sep 28 23:47 /bin/ash -> busybox
Fri Mar 29 11:25:05 2024 daemon.info aria2: Aria2 will run with user 'root'.
Fri Mar 29 11:25:06 2024 daemon.info aria2c[5182]: jail: jail (5183) exited with exit: 0
Fri Mar 29 11:25:06 2024 daemon.info aria2c[9836]: jail: exec-ing /usr/bin/aria2c
Fri Mar 29 11:25:16 2024 daemon.err aria2c[9836]: Could not execute user command: /etc/aria2/pre_check.sh: No such file or directory
Beta Was this translation helpful? Give feedback.
All reactions