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

Unified Diff: remoting/host/installer/linux/debian/postinst

Issue 10857046: Stop remoting host on install. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | « remoting/host/installer/linux/debian/.gitignore ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/installer/linux/debian/postinst
diff --git a/remoting/host/installer/linux/debian/postinst b/remoting/host/installer/linux/debian/postinst
new file mode 100755
index 0000000000000000000000000000000000000000..31e6b310c0098e0192e42046fe6b4b9524a8b997
--- /dev/null
+++ b/remoting/host/installer/linux/debian/postinst
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+set -e
+
+case $1 in
+ "configure")
+ echo "Shutting down remoting hosts (they will restart automatically)..."
+ killall -q -s USR1 remoting_me2me_host || true
Lambros 2012/08/17 00:14:11 Are you sure about USR1, doesn't that just tell it
Jamie 2012/08/17 00:21:13 I think you're thinking of SIGHUP. The reason I we
Sergey Ulanov 2012/08/17 00:23:59 This will only restart the host. If the daemon cod
Jamie 2012/08/17 01:21:28 That's right. I'm planning a follow-up CL to handl
+ ;;
+esac
+
+#DEBHELPER#
« no previous file with comments | « remoting/host/installer/linux/debian/.gitignore ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698