这是indexloc提供的服务,不要输入任何密码
Skip to content

Termux boot 0.7 not starting: workaround using Tasker #155

@freebrowser1

Description

@freebrowser1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions