Skip to content
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

Termux boot 0.7 not starting: workaround using Tasker #155

Open
freebrowser1 opened this issue May 29, 2023 · 1 comment
Open

Termux boot 0.7 not starting: workaround using Tasker #155

freebrowser1 opened this issue May 29, 2023 · 1 comment

Comments

@freebrowser1
Copy link

freebrowser1 commented May 29, 2023

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
Screenshot 2023-05-29 at 12 26 43 (ignore the read clipboard file, only tasker-boot.sh is needed) Select as action Plugin => Termux and fill in a script. Screenshot 2023-05-29 at 12 26 27 Open this action: Screenshot 2023-05-29 at 12 26 10

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.

@Qwert221
Copy link

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
Screenshot 2023-05-29 at 12 26 43 (ignore the read clipboard file, only tasker-boot.sh is needed) Select as action Plugin => Termux and fill in a script. Screenshot 2023-05-29 at 12 26 27 Open this action: Screenshot 2023-05-29 at 12 26 10

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.

#```

  • ### > # ````

@termux termux deleted a comment from abolfxzl Oct 15, 2023
@termux termux deleted a comment from nahidhasan54870933 Mar 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@freebrowser1 @Qwert221 and others