The Termux:Boot add-on provides functionality to run programs under Termux when the device boots up.

Usage

Example

To start an sshd server and prevent the device from sleeping at boot, create a file at ~/.termux/boot/start-sshd containing the three lines

    #!/data/data/com.termux/files/usr/bin/sh
    termux-wake-lock
    sshd

Learn more

Join the Termux community through the various channels listed at https://termux.org/community

Report issues

https://github.com/termux/termux-boot/issues