Skip to content
Termux add-on app allowing programs to be run at boot.
Java HTML
Branch: master
Clone or download
Latest commit 156b0cd Sep 15, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Add bug_report template Jan 14, 2019
app Bump version to 0.7 Sep 15, 2019
gradle/wrapper Update gradle version Aug 5, 2019
.gitignore
README.md
build.gradle Update gradle version Aug 5, 2019
gradle.properties Initial commit Dec 29, 2016
gradlew Update gradle version Aug 5, 2019
gradlew.bat
settings.gradle Initial commit Dec 29, 2016

README.md

Termux:Boot

Join the chat at https://gitter.im/termux/termux

A Termux add-on app to run programs at boot.

When developing (or packaging), note that this app needs to be signed with the same key as the main Termux app in order to have the permission to execute scripts.

License

Released under the GPLv3 license.

How to use

  1. Install the Termux:Boot app.
  2. Start the Termux:Boot app once by clicking on its launcher icon. This allows the app to be run at boot.
  3. Create the ~/.termux/boot/ directory.
  4. Put scripts you want to execute inside the ~/.termux/boot/ directory. If there are multiple files, they will be executed in a sorted order.
  5. Note that you may want to run termux-wake-lock as first thing if you want to ensure that the device is prevented from sleeping.

Example: To start an sshd server and prevent the device from sleeping at boot, create the following file at ~/.termux/boot/start-sshd:

#!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
sshd
You can’t perform that action at this time.