Open freebrowser1 opened 1 year ago
Problem description Termux boot does not run script at all
Steps to reproduce Create a script as described in the documentation in .termux/boot/
and do a chmod +x of that script. Put a line with date >> /data/data/com.termux/files/home/termux-boot
which should log the current time at every reboot.Expected behavior After reboot, the date is logged, but nothing is logged and other commands are not run as well.
Additional information
- Termux application version: 0.118
- Android OS version: 10
- Device model: Oneplus 6
(ignore the read clipboard file, only tasker-boot.sh is needed) Select as action Plugin => Termux and fill in a script.
Open this action:
Contents of the script:
#!/data/data/com.termux/files/usr/bin/sh sshd /data/data/com.termux/files/usr/bin/sv start httpd /data/data/com.termux/files/usr/bin/sv start sshd /data/data/com.termux/files/usr/bin/avahi-daemon & mysqld & date >> /data/data/com.termux/files/home/tasker-boot termux-wake-lock
This starts sshd, Apache, MariaDB, avahi and finally logs the current time to check whether the script has really run.
Problem description Termux boot does not run script at all
Steps to reproduce Create a script as described in the documentation in .termux/boot/ and do a chmod +x of that script.
Put a line with
date >> /data/data/com.termux/files/home/termux-boot
which should log the current time at every reboot.Expected behavior After reboot, the date is logged, but nothing is logged and other commands are not run as well.
Additional information
(ignore the read clipboard file, only tasker-boot.sh is needed) Select as action Plugin => Termux and fill in a script.
Open this action:
Contents of the script:
This starts sshd, Apache, MariaDB, avahi and finally logs the current time to check whether the script has really run.