-
Notifications
You must be signed in to change notification settings - Fork 227
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
Can not start script with sudo #63
Comments
Manda comado bom |
Help |
I experienced a similar issue with calling any scripts I'd written from inside the boot script, but calling any builtin command or pkg application was fine.
It's probably worth noting that it was on a Motorola G6 and judging from other issues like this these are platform specific problems. On the G6 I had to disable battery optimisation but there is no specific permission for startup. Are there any other suggestion as to what might cause this kind of behaviour? |
Assuming you are not running with sudo then issues could be caused my invalid shebangs. For termux-boot shebang needs to be valid, so for example |
This works for me:
|
Problem description
startup script not execute when Andorid restart
Steps to reproduce
adb shell
then check nginx process byps | grep nginx
. Have no any outputnetease-proxy.sh
The script can not execute When Andorid system started. I try manual start termux-boot-app, startup script executed and start app.js and sshd. But
sudo nginx
not start. When try executed script./netease-proxy.sh
in termux terminal it work wellnginx.conf
Expected behavior
Nginx,App.js,sshd will start when Android started
Additional information
termux-info
The text was updated successfully, but these errors were encountered: