• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "jobs" : [{
3            "name" : "service:nwebspawn",
4            "cmds" : [
5                "mkdir /mnt/sandbox",
6                "mkdir /mnt/sandbox/com.ohos.render/ 0711 nwebspawn nwebspawn",
7                "mkdir /mnt/startup",
8                "mkdir /mnt/startup/appspawn 0700 root root",
9                "mkdir /mnt/startup/nwebspawn/ 0700 nwebspawn nwebspawn"
10            ]
11        },
12        {
13            "name" : "init",
14            "cmds" : [
15                "mkdir /dev/pids",
16                "mount cgroup none /dev/pids pids",
17                "chown root appspawn /dev/pids",
18                "chown root appspawn /dev/pids/tasks",
19                "chown root appspawn /dev/pids/cgroup.procs",
20                "chmod 0755 /dev/pids",
21                "chmod 0755 /dev/pids/tasks",
22                "chmod 0755 /dev/pids/cgroup.procs"
23            ]
24        }
25    ],
26    "services" : [{
27            "name" : "appspawn",
28            "path" : ["/system/bin/appspawn",
29                      "-mode appspawn",
30                      "--process-name com.ohos.appspawn.startup --start-flags daemon --type standard ",
31                      "--sandbox-switch on --bundle-name com.ohos.appspawn.startup --app-operate-type operate ",
32                      "--render-command command --app-launch-type singleton --app-visible true"],
33            "importance" : -20,
34            "critical" : [1, 4, 240],
35            "uid" : "root",
36            "gid" : ["root"],
37            "socket" : [{
38                "name" : "AppSpawn",
39                "family" : "AF_LOCAL",
40                "type" : "SOCK_STREAM",
41                "protocol" : "default",
42                "permissions" : "0660",
43                "uid" : "root",
44                "gid" : "appspawn",
45                "option" : [
46                ]
47            },
48            {
49                "name" : "NWebSpawn",
50                "family" : "AF_LOCAL",
51                "type" : "SOCK_STREAM",
52                "protocol" : "default",
53                "permissions" : "0666",
54                "uid" : "nwebspawn",
55                "gid" : "nwebspawn",
56                "option" : [
57                ]
58            }],
59            "sandbox" : 0,
60            "start-mode" : "boot",
61            "secon" : "u:r:appspawn:s0",
62            "jobs" : {
63                "on-start" : "service:nwebspawn"
64            },
65            "bootevents" : "bootevent.appspawn.started"
66        }
67    ]
68}
69
70