termux / termux-boot

Termux add-on app allowing programs to be run at boot.
https://f-droid.org/en/packages/com.termux.boot
931 stars 219 forks source link

~/.termux/boot/ 中的文件没有被运行 #159

Closed laisc7301 closed 5 months ago

laisc7301 commented 1 year ago

Problem description 我在 ~/.termux/boot/ 目录下放了一个 "test" 文件并在文件中写入:

pure-ftpd -B -E -l puredb:$PREFIX/etc/pureftpd.pdb -S 0.0.0.0,3721

echo "It run!"

我重启了手机,进入了Termux,但是这段脚本并没有运行。

I reboot the phone and enter the Termux, but this script is not run.

Steps to reproduce

Expected behavior

Additional information

sylirre commented 1 year ago

I'd suggest you to do few things:

Note that you need to open Termux:Boot application at least once by clicking on its launcher icon. https://wiki.termux.com/wiki/Termux:Boot

pu-007 commented 7 months ago

I solved the problem by rebooting the phone. And I started Termux:Boot at first, after that I launched Termux.