termux-boot
termux-boot copied to clipboard
Created service no autotun
No autorun service after reboot ( if no login in bash once )
Use ssh local server, connect other phone port xray local network.
Example. exec xray -c config.json run
Try to supply absolute path to your config.json file. Also make sure to run termux-wake-lock before exec line.
Also I would suggest to try running your script via Termux:Widget to see whether it can start without interactive shell session at all.
fix. add in script autorun - tmux new-session -d
No autorun service after reboot ( if no login in bash once )
Use ssh local server, connect other phone port xray local network.
Example. exec xray -c config.json run