ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Epiphanov Sergei <serpiph@nikiet.ru>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] Старт демона на python
Date: Fri, 9 Feb 2007 14:12:45 +0300
Message-ID: <200702091412.45549.serpiph@nikiet.ru> (raw)
In-Reply-To: <45CC5365.7040109@altlinux.org>

В сообщении от Friday 09 February 2007 13:56 Слава Дубровский написал(a):
> Есть программка на питоне, которая состоит из самой программы и
> библиотеки. Запускается через python server.py . Программа ищет свою
> библиотеку в той-же директории что и находится сама. Хочу написать
> init.d скрипт. Ни о каких PIDFILE, LOCKFILE программа понятия не имеет.
> Пишу так:
> start_daemon --pidfile "$PIDFILE" --lockfile "$LOCKFILE" --expect-user
> root -- python /usr/lib/easyvz/server.py
>
> И программа не работает, т.к. не может найти библиотеку.
> Вопрос: Как правильно запускать такой сервис?

А попробуйте сделать так:

pushd /usr/lib/easyvz
start_daemon <ваши параметры>
popd

Вдруг заработает?

-- 
С уважением, Епифанов Сергей


  parent reply	other threads:[~2007-02-09 11:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-09 10:56 Слава Дубровский
2007-02-09 11:10 ` Alexey Sidorov
2007-02-09 11:12 ` Epiphanov Sergei [this message]
2007-02-09 12:12 ` Alexey Morsov
2007-02-09 13:11   ` Слава Дубровский
2007-02-09 13:36     ` Alexey Morsov

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=200702091412.45549.serpiph@nikiet.ru \
    --to=serpiph@nikiet.ru \
    --cc=devel@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 Team development discussions

This inbox may be cloned and mirrored by anyone:

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

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


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