use it to enhance termux-service
cxyzzz opened this issue · 2 comments
cxyzzz commented
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
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
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