diff options
Diffstat (limited to 'japanese/mozc-server/files/mozc.in')
-rw-r--r-- | japanese/mozc-server/files/mozc.in | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/japanese/mozc-server/files/mozc.in b/japanese/mozc-server/files/mozc.in index 91a8ef2d279c..43023758e46e 100644 --- a/japanese/mozc-server/files/mozc.in +++ b/japanese/mozc-server/files/mozc.in @@ -37,10 +37,11 @@ stop_server() { if [ -r "${MOZCDIR}/mozc_server.pid" ]; then pkill -F "${MOZCDIR}/mozc_server.pid" + else + for p in $(pgrep -U $(id -u) mozc_server); do + kill $p + done fi - for p in $(pgrep -U $(id -u) mozc_server); do - kill $p - done } case $1 in |