summaryrefslogtreecommitdiff
path: root/gsid.rc
diff options
context:
space:
mode:
authorDavid Anderson <dvander@google.com>2019-01-30 19:02:24 -0800
committerDavid Anderson <dvander@google.com>2019-02-07 18:54:41 -0800
commit68fc05302783dc5fca06ee11553881a05055c0bc (patch)
treee97165bcde25001529d6d0e5a17f394e60dc11bd /gsid.rc
parentf52b7289d0030af70fbeae6f9032e1c9b272aa7e (diff)
downloadgsid-68fc05302783dc5fca06ee11553881a05055c0bc.tar.gz
Gsid should behave more like a normal service.
This patch makes the following changes to gsid: - It now runs on startup and is no longer a one-shot service. - /data/gsi is now created via init, with the appropriate permissions. - gsi_tool no longer starts/stops gsid. - /metadata/gsi is readable by the system group, so system_server can read /metadata/gsi/booted. Bug: 122556707 Test: manual test Change-Id: I08c0c6e9a155a0dea113c8535e71bda5aeda0ff6
Diffstat (limited to 'gsid.rc')
-rw-r--r--gsid.rc13
1 files changed, 7 insertions, 6 deletions
diff --git a/gsid.rc b/gsid.rc
index 7138f27..7038ab3 100644
--- a/gsid.rc
+++ b/gsid.rc
@@ -1,12 +1,13 @@
service gsid /system/bin/gsid
- oneshot
- disabled
user root
- group root
+ group root system
on post-fs
- mkdir /metadata/gsi
- chmod 0700 /metadata/gsi
+ mkdir /metadata/gsi 0771 root system
+
+on post-fs-data
+ mkdir /data/gsi 0700 root root
on boot
- exec - gsid gsid -- /system/bin/gsid run-startup-tasks
+ exec - root root -- /system/bin/gsid run-startup-tasks
+ start gsid