Binary Service
Binary services run as root, with the working directory /data/media/0/Server (i.e. /storage/emulated/0/Server, configurable in settings). Keep the executable and its dependencies in the same folder, and set the permission to 755 yourself.
This section is being written. See Service Examples for a complete Memos configuration in the meantime.