在termux中运行的服务启停工具
-
安装 termux-exec .
$ pkg install termux-exec
-
在/home目录添加
.bash_profile文件
,内容如下if ! pgrep -f "proot" >/dev/null ; then termux-chroot ;fi
-
关闭 termux APP 重新启动
$ pkg install node
$ git clone https://github.com/mescp/termux_launcher.git
$ cd termux_launcher
$ npm install
-
设置
config.json
$ cp config_example.json config.json
说明:
{
"appTitle": [
[
"名称",
"状态"
]
],
"appList": [
{
"name": "sshd", -- 服务名称,不能重复
"command": "sshd", -- 执行命令
"args": "", -- 执行命令的参数
"grep": "sshd" -- 查找和停止服务的grep参数
},
{
"name": "aria2c",
"command": "bash",
"args": "./bin/aria2c.sh", -- 通过 pkg install aria2 安装
"grep": "aria2c"
},
{
......
}
]
}
-
全局安装
$ npm link
$ launcher
The MIT License