ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "\"Четвериков К.В.\"" <chetverikov@mann-schroeder.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] P7 TDE. Kdesktop зависает.
Date: Tue, 17 Jun 2014 17:38:44 +0400
Message-ID: <53A044E4.8090500@mann-schroeder.ru> (raw)
In-Reply-To: <538C8456.4030003@mann-schroeder.ru>

Так как проблему не удалось разрешить корректно, я сделал костыль, 
которым можно подпереть этот баг, в ожидании выхода новой, стабильной 
версии TDE.

cat 77-killzombie
#!/bin/sh

#Sozdaem skript proverki na poyavlenie zombie kdesktop_lock i ubijstva 
ego bati v sluchae zombifikatsii syna.

cat >> /usr/bin/killzombie << _EOF_
#!/bin/bash

#Skript proveryaet kazdye 3 sekundy process kdesktop_lock
#i esli tot stanovitsya zombie, to ubivaet i vnov' zapuskaet kdesktop.

while true
do

#Proveryaet, est' li u processa kdesktop_lock status Z (zombie) i 
zanosit ego v peremennuyu STATOFPROC
STATOFPROC=\$(ps x | grep kdesktop_lock | grep -v grep | tail -1 | grep 
-o "\ Z\ " | sed 's/ Z /Z/')

#Zhdet 3 sekundy i potom vypolnyaetsya
sleep 3s

#Esli process kdesktop_lock imeet status Z (zombie), to ubit' kdesktop i 
vnov' ego zapustit'.
if [ \$STATOFPROC = Z ]
then
echo "Zombie Detected!!! R.I.P. \$(date +%d.%m.%y_%H:%M:%S)" >> 
~/.killzombie.log
kill -9 \$(pidof /usr/lib/kde3/bin/kdesktop)
sleep 0.2s
nohup /usr/lib/kde3/bin/kdesktop >> ~/.killzombie.log &
fi

done
_EOF_

#Delaem skript ispolnyaemym.
chmod 555 /usr/bin/killzombie

Делаем симлинк на /usr/bin/killzombie в директорию автозапуска TDE.

cat .killzombie.log
Zombie Detected!!! R.I.P. 17.06.14_09:22:16

-- 
С уважением,
Четвериков Константин
Системный администратор
ООО „МАНН и ШРЁДЕР Руссланд“
Лихачевский пр-д.10, г. Долгопрудный 141700 МО
Тел. +7 (495) 617-617-2 доб. 212
e-mail: chetverikov@mann-schroeder.ru www.mann-schroeder.ru



  reply	other threads:[~2014-06-17 13:38 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-22 12:23 Четвериков Константин
2014-05-22 13:36 ` Michael Shigorin
2014-05-29 12:03   ` Четвериков Константин
2014-06-02 14:04     ` Четвериков Константин
2014-06-17 13:38       ` "Четвериков К.В." [this message]
2014-05-25 15:42 ` Speccyfighter
2014-05-26  4:44 ` Gleb Kulikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53A044E4.8090500@mann-schroeder.ru \
    --to=chetverikov@mann-schroeder.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git