Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Unified Diff: mod_for_factory_scripts/200patchInitScript

Issue 6567004: crosutils: fixing factory upstart script to allow stopping factory test ui. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/crosutils.git@master
Patch Set: remove the VT1 hack. Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mod_for_factory_scripts/200patchInitScript
diff --git a/mod_for_factory_scripts/200patchInitScript b/mod_for_factory_scripts/200patchInitScript
index 5273054599936d7477cedceb89552bb7ee17b6cd..5c58b63929a27d21d84807d61e78e68ce3d2c1c0 100755
--- a/mod_for_factory_scripts/200patchInitScript
+++ b/mod_for_factory_scripts/200patchInitScript
@@ -48,6 +48,15 @@ else
./bin/autotest -t factory -c control >>/var/log/factory.log 2>&1
fi
end script
+
+pre-stop script
+ pkill python
+ pkill X
+end script
+
+post-stop script
+ chvt 2
+end script
EOF
cat >"${ROOT_FS_DIR}/etc/init/factorylog.conf" <<EOF
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698