File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,14 +29,28 @@ all currently installed plugins.
29294 . Put scripts you want to execute inside the ` ~/.termux/boot/ ` directory. If there are multiple files, they will be executed in a sorted order.
30305 . 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.
3131
32- Example: To start an sshd server and prevent the device from sleeping at boot, create the following file at ` ~/.termux/boot/start-sshd ` :
32+ ### Examples
33+
34+ To start an sshd server and prevent the device from sleeping at boot,
35+ create the following file at ` ~/.termux/boot/start-sshd ` :
3336
3437``` sh
3538#! /data/data/com.termux/files/usr/bin/sh
3639termux-wake-lock
3740sshd
3841```
3942
43+ To start
44+ [ termux-services] ( https://wiki.termux.com/wiki/Termux-services ) , which
45+ in turn starts enabled services, you can put the following in
46+ ` ~/.termux/boot/start-services ` :
47+
48+ ``` sh
49+ #! /data/data/com.termux/files/usr/bin/sh
50+ termux-wake-lock
51+ source /data/data/com.termux/files/usr/etc/profile.d/start-services.sh
52+ ```
53+
4054## License
4155
4256Released under [ the GPLv3 license] ( https://www.gnu.org/licenses/gpl.html ) .
You can’t perform that action at this time.
0 commit comments