summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Harold <nharold@google.com>2018-04-04 13:15:31 -0700
committerNathan Harold <nharold@google.com>2018-04-23 10:13:41 -0700
commit601c3a04a576b7c84677fa2a68197d0bd3bd6f99 (patch)
tree960343f5f48109ffabf40676aa17ef3fd1f9de03
parent83a5a8ea99bac1ece30ecee99fba3feb60343024 (diff)
downloadnetd-601c3a04a576b7c84677fa2a68197d0bd3bd6f99.tar.gz
Restart main when netd restarts
Because netd crashes very rarely, and because it maintains some state along with the system server, and because upon restart netd starts first, vendors who listen to netd restarts may begin recovery procedures prior to the system server restarting if it crashes, we need to ensure that if netd crashes and restarts, the system server also restarts. This means that now regardless of which goes down, the restart is always the same (rather than asymmetrical as it was before). Bug: 74560705 Test: manual (crashed system server, crashed netd) Change-Id: I27ecdc59a92f1fa0703e372e987e80482ad6f7f3
-rw-r--r--server/netd.rc2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/netd.rc b/server/netd.rc
index 4fc6fd8c..81006369 100644
--- a/server/netd.rc
+++ b/server/netd.rc
@@ -4,3 +4,5 @@ service netd /system/bin/netd
socket dnsproxyd stream 0660 root inet
socket mdns stream 0660 root system
socket fwmarkd stream 0660 root inet
+ onrestart restart zygote
+ onrestart restart zygote_secondary