ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Alexey Morsov <samurai@ricom.ru>
To: Sisyphus <sisyphus@lists.altlinux.org>
Subject: [sisyphus] start process if there no it's copy
Date: Mon, 16 Jan 2006 16:42:09 +0300
Message-ID: <20060116134209.GC13504@ricom.ru> (raw)

[-- 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 --]

             reply	other threads:[~2006-01-16 13:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-16 13:42 Alexey Morsov [this message]
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

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=20060116134209.GC13504@ricom.ru \
    --to=samurai@ricom.ru \
    --cc=sisyphus@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 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