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

Issue 10857046: Stop remoting host on install. (Closed)

Created:
8 years, 4 months ago by Jamie
Modified:
8 years, 4 months ago
Reviewers:
Sergey Ulanov, Lambros
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Stop remoting host on install. It will be restarted automatically by the Python script. Note that this CL does not handle changes to the Python script itself, nor to Xvfb. BUG=139919 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152095

Patch Set 1 #

Total comments: 4

Patch Set 2 : Send SIGTERM instead of SIGUSR1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -0 lines) Patch
A remoting/host/installer/linux/debian/.gitignore View 1 chunk +7 lines, -0 lines 0 comments Download
A remoting/host/installer/linux/debian/postinst View 1 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Jamie
ptal
8 years, 4 months ago (2012-08-16 23:14:40 UTC) #1
Lambros
http://codereview.chromium.org/10857046/diff/1/remoting/host/installer/linux/debian/postinst File remoting/host/installer/linux/debian/postinst (right): http://codereview.chromium.org/10857046/diff/1/remoting/host/installer/linux/debian/postinst#newcode8 remoting/host/installer/linux/debian/postinst:8: killall -q -s USR1 remoting_me2me_host || true Are you ...
8 years, 4 months ago (2012-08-17 00:14:11 UTC) #2
Jamie
ptal http://codereview.chromium.org/10857046/diff/1/remoting/host/installer/linux/debian/postinst File remoting/host/installer/linux/debian/postinst (right): http://codereview.chromium.org/10857046/diff/1/remoting/host/installer/linux/debian/postinst#newcode8 remoting/host/installer/linux/debian/postinst:8: killall -q -s USR1 remoting_me2me_host || true On ...
8 years, 4 months ago (2012-08-17 00:21:12 UTC) #3
Sergey Ulanov
http://codereview.chromium.org/10857046/diff/1/remoting/host/installer/linux/debian/postinst File remoting/host/installer/linux/debian/postinst (right): http://codereview.chromium.org/10857046/diff/1/remoting/host/installer/linux/debian/postinst#newcode8 remoting/host/installer/linux/debian/postinst:8: killall -q -s USR1 remoting_me2me_host || true On 2012/08/17 ...
8 years, 4 months ago (2012-08-17 00:23:59 UTC) #4
Lambros
LGTM I agree it would be nice to handle SIGTERM to do explicit client disconnection ...
8 years, 4 months ago (2012-08-17 00:32:06 UTC) #5
Jamie
8 years, 4 months ago (2012-08-17 01:21:28 UTC) #6
http://codereview.chromium.org/10857046/diff/1/remoting/host/installer/linux/...
File remoting/host/installer/linux/debian/postinst (right):

http://codereview.chromium.org/10857046/diff/1/remoting/host/installer/linux/...
remoting/host/installer/linux/debian/postinst:8: killall -q -s USR1
remoting_me2me_host || true
On 2012/08/17 00:23:59, sergeyu wrote:
> On 2012/08/17 00:14:11, Lambros wrote:
> > Are you sure about USR1, doesn't that just tell it to reload its config? 
Just
> a
> > plain SIGTERM seems to be the right thing here.
> 
> This will only restart the host. If the daemon code (the python script) is
> updated too, shouldn't we restart it too?

That's right. I'm planning a follow-up CL to handle the more complex case of an
updated script or Xvfb. The problem there is that simply restarting the affected
process will kill the user's desktop and might result in data loss. I wanted to
handle this simple case first.

> Also if we use SIGTERM to kill the process it might be a good idea to handle
it
> explicitly in the host, e.g. to shutdown all current sessions cleanly.

I'm not averse to doing that, but as Lambros says, I think it can be a follow-up
(especially as it conflicts with your signal handling CL).

Powered by Google App Engine
This is Rietveld 408576698