From b6c75d8d2fd47ff5df921eee56612f4b759b65a1 Mon Sep 17 00:00:00 2001 From: Niranjan Pendharkar Date: Thu, 31 May 2018 12:08:28 -0700 Subject: msm8996-common: Use low level shutdown trigger to stop cnss-daemon Low level shutdown is triggered after SystemServer is cleaned up. sys.shutdown.requested is private to SystemServer and is used to syncrhonize the shutdown process if SystemServer crashes before hardware reboot is complete. Native daemons must use low level shutdown indication from powermanager for their graceful shutdown, if they wish to stop before init terminates the process. Change-Id: Ia583f7dce6f1927d9b766fdc132f082b409f4d67 --- rootdir/etc/init.qcom.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rootdir') diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index a077372..2fa856f 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -471,7 +471,7 @@ service cnss-daemon /vendor/bin/cnss-daemon -n -l user system group system inet net_admin wifi -on property:sys.shutdown.requested=* +on property:sys.powerctl=* stop cnss-daemon service loc_launcher /vendor/bin/loc_launcher -- cgit v1.2.3