1 Star 0 Fork 507

樊景乐/startup_appspawn_79

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
appspawn.cfg 2.40 KB
一键复制 编辑 原始数据 按行查看 历史
cat 提交于 2024-10-17 07:09 . add cfg item
{
"jobs" : [{
"name" : "service:nwebspawn",
"cmds" : [
"mkdir /mnt/sandbox",
"mkdir /mnt/sandbox/com.ohos.render/ 0711 nwebspawn nwebspawn",
"mkdir /mnt/startup",
"mkdir /mnt/startup/appspawn 0700 root root",
"mkdir /mnt/startup/nwebspawn/ 0700 nwebspawn nwebspawn"
]
},
{
"name" : "init",
"cmds" : [
"mkdir /dev/pids",
"mount cgroup none /dev/pids pids",
"chown root appspawn /dev/pids",
"chown root appspawn /dev/pids/tasks",
"chown root appspawn /dev/pids/cgroup.procs",
"chmod 0750 /dev/pids",
"chmod 0750 /dev/pids/tasks",
"chmod 0750 /dev/pids/cgroup.procs"
]
}
],
"services" : [{
"name" : "appspawn",
"path" : ["/system/bin/appspawn",
"-mode appspawn",
"--process-name com.ohos.appspawn.startup --start-flags daemon --type standard ",
"--sandbox-switch on --bundle-name com.ohos.appspawn.startup --app-operate-type operate ",
"--render-command command --app-launch-type singleton --app-visible true"],
"importance" : -20,
"critical" : [1, 4, 240],
"uid" : "root",
"gid" : ["root"],
"setuid" : true,
"socket" : [{
"name" : "AppSpawn",
"family" : "AF_LOCAL",
"type" : "SOCK_STREAM",
"protocol" : "default",
"permissions" : "0660",
"uid" : "root",
"gid" : "appspawn",
"option" : [
]
},
{
"name" : "NWebSpawn",
"family" : "AF_LOCAL",
"type" : "SOCK_STREAM",
"protocol" : "default",
"permissions" : "0666",
"uid" : "nwebspawn",
"gid" : "nwebspawn",
"option" : [
]
}],
"sandbox" : 0,
"start-mode" : "boot",
"secon" : "u:r:appspawn:s0",
"jobs" : {
"on-start" : "service:nwebspawn"
},
"bootevents" : "bootevent.appspawn.started"
}
]
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fan-jingle/startup_appspawn_79.git
git@gitee.com:fan-jingle/startup_appspawn_79.git
fan-jingle
startup_appspawn_79
startup_appspawn_79
master

搜索帮助