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

Issue 3354014: Move post-stop script for ibus daemons from ibus.conf to ui.conf. (Closed)

Created:
10 years, 3 months ago by Yusuke Sato
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org
Base URL:
ssh://git@chromiumos-git//init.git
Visibility:
Public.

Description

Move post-stop script for ibus daemons from ibus.conf to ui.conf. Since we have deleted "script ... end script" section of ibus.conf, the post-stop script in ibus.conf is no longer working. We have to move the script somewhere else. BUG=chromium-os:6515 TEST=see the bug. manually checked that the script in ui.conf kills ibus daemons.

Patch Set 1 #

Total comments: 4

Patch Set 2 : review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -29 lines) Patch
D ibus.conf View 1 chunk +0 lines, -28 lines 0 comments Download
M ui.conf View 1 1 chunk +9 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Yusuke Sato
10 years, 3 months ago (2010-09-09 01:17:31 UTC) #1
satorux1
Thank you for the fix! http://codereview.chromium.org/3354014/diff/1/3 File ui.conf (right): http://codereview.chromium.org/3354014/diff/1/3#newcode83 ui.conf:83: # Note that IBus ...
10 years, 3 months ago (2010-09-09 01:22:25 UTC) #2
Yusuke Sato
http://codereview.chromium.org/3354014/diff/1/3 File ui.conf (right): http://codereview.chromium.org/3354014/diff/1/3#newcode83 ui.conf:83: # Note that IBus processes are not mananged by ...
10 years, 3 months ago (2010-09-09 01:39:58 UTC) #3
satorux1
LGTM. Thank you for adding comments. That would protect us from someone like me trying ...
10 years, 3 months ago (2010-09-09 01:42:59 UTC) #4
Zachary Kuznia
LGTM On 2010/09/09 01:42:59, satorux1 wrote: > LGTM. > > Thank you for adding comments. ...
10 years, 3 months ago (2010-09-09 03:13:55 UTC) #5
Daniel Erat
10 years, 3 months ago (2010-09-09 05:54:35 UTC) #6
LGTM

On Wed, Sep 8, 2010 at 6:17 PM,  <yusukes@chromium.org> wrote:
> Reviewers: Zachary Kuznia, Daniel Erat,
>
> Description:
> Move post-stop script for ibus daemons from ibus.conf to ui.conf.
>
> Since we have deleted "script ... end script" section of ibus.conf, the
> post-stop script in ibus.conf is no longer working. We have to move the
> script
> somewhere else.
>
> BUG=chromium-os:6515
> TEST=see the bug. manually checked that the script in ui.conf kills ibus
> daemons.
>
> Please review this at http://codereview.chromium.org/3354014/show
>
> SVN Base: ssh://git@chromiumos-git//init.git
>
> Affected files:
>  D ibus.conf
>  M ui.conf
>
>
> Index: ibus.conf
> diff --git a/ibus.conf b/ibus.conf
> deleted file mode 100644
> index
>
2af29123c4d7d5c183d6cb04f8c66a2944f0dd91..0000000000000000000000000000000000000000
> --- a/ibus.conf
> +++ /dev/null
> @@ -1,28 +0,0 @@
> -# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
> -# Use of this source code is governed by a BSD-style license that can be
> -# found in the LICENSE file.
> -
> -description   "Run ibus-daemon and ibus-memconf"
> -author        "chromium-os-dev@googlegroups.com"
> -
> -stop on stopping ui
> -
> -# ibus-daemon creates a temporary file in /home/chronos,
> -# not in /home/chronos/user.
> -env HOME=/home/chronos
> -
> -post-stop script
> -
> -set +e
> -. /sbin/killers
> -
> -# Ensure ibus-daemon  and sub-processes are terminated. Note that these
> -# processes are not mananged by Upstart.
> -term_process "(candidate_w.*|ibus-[dem].*)"
> -
> -# Since Chrome OS regenerates /var/lib/dbus/machine-id every time when the
> OS
> -# starts, ibus-daemon creates a new file in ${HOME}/.config/ibus/bus/ every
> time
> -# when it starts. It's better to remove them when ibus-daemon is
> terminated.
> -rm -f ${HOME}/.config/ibus/bus/*
> -
> -end script
> Index: ui.conf
> diff --git a/ui.conf b/ui.conf
> index
>
0f4b9e10751dec239e47a7a16ea97b18a39a0487..38a539ddfe2259cd046f4bfac250807864ab9ed1
> 100644
> --- a/ui.conf
> +++ b/ui.conf
> @@ -78,7 +78,13 @@ set +e
>
>  # Terminate any processes with files open on the mount point
>  kill_with_open_files_on /home/chronos/user
> -term_process "^X$"
> +
> +# Ensure X, ibus-daemon, and sub processes of ibus-daemon are terminated.
> +# Note that IBus processes are not mananged by Upstart.
> +term_process "(^X$|candidate_w.*|ibus-[dem].*)"
> +
> +# Remove ibus-daemon's PID file.
> +rm -f /home/chronos/.config/ibus/bus/*
>
>  # Eventually, this will take a parameter specifying which user's dir to
> unmount.
>  /usr/sbin/cryptohome --action=unmount
>
>
>

Powered by Google App Engine
This is Rietveld 408576698