I wrote a simple service like this one: http://smarden.org/runit/runscripts.html#apache2

$ cat start_node_exporter 
. $PREFIX/etc/profile
/data/data/com.termux/files/home/bin/node_exporter --collector.wifi --collector.tcpstat --collector.runit --collector.processes --collector.mountstats

I would like it to run on phone reboot

  • Explained here very well: wiki.termux.com/wiki/Termux:Boot Aug 29 '20 at 11:33
  • I have already tried that, that sshd example did not work on reboot the .termux folder disappeared. Aug 29 '20 at 11:35
  • Did you install Termux Boot app? Aug 29 '20 at 12:54
  • Indeed, the instructions are pretty clear on the page you shared Aug 29 '20 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.