Service Examples
Termux Service
Using OpenList as an example. Termux services default to the working directory /data/data/com.termux/files/home:
- Option 1: fill in exactly how you start it in Termux
- For openlist, just enter
openlist server— same as starting it inside Termux
- For openlist, just enter
- Option 2: use a dedicated folder (keep service files organized)
- Create an
openlistfolder under the home directory yourself - If openlist lives at
/data/data/com.termux/files/home/openlist, entercd ./openlist;openlist serveroropenlist server --data ./openlist/dataas the start command
- Create an
- Enter 5244 as the port; once running, you can open the service page from the port
- On first launch of openlist, check the logs for the
passwordfield
Binary Service
Using Memos as an example. Binary services default to the working directory /data/media/0/Server (external storage /storage/emulated/0/Server):
- Create a
memosfolder underServer, extract the downloadedmemos_0.xx.0_linux_arm64.tar.gz, and put the executablememosinside - The binary must already be executable (
chmod +x ./memos, i.e. permission755). This module does not change binary file permissions — handle it yourself, and place dependent libraries and resources in the same folder - Enter
cd ./memos;./memosas the start command:cd ./xxxswitches into the folder,./xxxlaunches the binary - memos listens on 8081 by default; add
--port 5230to use port 5230 instead (see the official docs for other flags). Entering 8081 in the port field enables the jump link on the service page