ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] start process if there no it's copy
@ 2006-01-16 13:42 Alexey Morsov
  2006-01-16 14:02 ` Nick S. Grechukh
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexey Morsov @ 2006-01-16 13:42 UTC (permalink / raw)
  To: Sisyphus

[-- Attachment #1: Type: text/plain, Size: 980 bytes --]

Привет,

нужно пускать юзерскую копию ivman (ну скорее всего при старте иксов, т.е.
в ~/.xession.d/ivman я прописал

#!/bin/sh

IVMAN=`which ivman`

id=`pgrep -U morsov ivman`
#id=`ps -U morsov -u morsov u|grep ivman|grep -v sh|grep -v grep|wc -l`

echo $id

if [ '$id' -eq '0' ]
then
    echo "No usermode ivman, starting"
    $IVMAN
else
    echo "Allready started"
fi

Но поскольку с башем не силен то что -то явно не так работает. Т.е. пока я
это пускаю просто ручкми все работает как должно, а когда оно при старте
иксов запускается, то user-copy ivman не стартует.

Что я не так в скрипте намучил?

-- 

С уважением,
Алексей Морсов
системный администратор ЗАО "ИК "Риком-Траст"

ICQ: 196-766-290
Jabber: samurai@www.fondmarket.ru
www.ricom.ru
www.fondmarket.ru

NP: Music is over :(

Впрочем, если целью является не рабочий Сизиф а повышение
сознательности мантейнеров, то робота лучше вообще не
использовать.
		-- ldv in devel@

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 481 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-01-17  9:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-16 13:42 [sisyphus] start process if there no it's copy Alexey Morsov
2006-01-16 14:02 ` Nick S. Grechukh
2006-01-16 14:55   ` Yuriy Kashirin
2006-01-16 14:17 ` Yuriy Kashirin
2006-01-17  9:46   ` Alexey Morsov
2006-01-17  7:26 ` Epiphanov Sergei

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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