termux / termux-boot

Termux add-on app allowing programs to be run at boot.
https://f-droid.org/en/packages/com.termux.boot
931 stars 219 forks source link

use it to enhance termux-service #143

Closed cxyzzz closed 1 year ago

cxyzzz commented 1 year ago

Feature description

The Termux:Boot plugin can run scripts after phone boot complete. Is there a way to use Termux:Boot initialize termux-service? Then the termux-service can create a services run after phone boot complete.

Grimler91 commented 1 year ago

If you are using bash you can use

#!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
. $PREFIX/etc/profile

See wiki: https://wiki.termux.com/wiki/Termux:Boot

cxyzzz commented 1 year ago

If you are using bash you can use

#!/data/data/com.termux/files/usr/bin/sh
termux-wake-lock
. $PREFIX/etc/profile

See wiki: https://wiki.termux.com/wiki/Termux:Boot

Thanks