ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Ivan Fedorov <ns@altlinux.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] Writing initscript: is pidfile needed?
Date: Wed, 13 Jul 2005 18:11:24 +0900
Message-ID: <42D4DABC.1080009@altlinux.ru> (raw)
In-Reply-To: <42D4D6A1.40908@altlinux.ru>

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

Sviatoslav Sviridov пишет:
> Приветствую,
> 
> Нужна консультация по выбору наиболее правильного решения...
> Дело в следующем:
> собираю tor (http://tor.eff.org/), пишу к нему initscript из template.
> 
> Сам tor умеет:
> - форкаться (уходить в бэкграунд)
> - понижать привилегии до указанных user/group
> - создавать/удалять свой pidfile
> Не умеет:
> - уходить в chroot
> 
> Проблема: под непривилегированным пользователем tor не может создать
> pidfile, start-stop-daemon на это обижается, при прверке статуса фигню
> выдает.
> 
> Варианты решения:
> 1. Не просить tor создавать pidfile, не говорить ничего про pidfile при
> вызове start-daemon/stop-daemon. В этом случае все вроде бы работает,
> никто не жалуется.
> 2. Не просить tor уходить в background, делать это при помощи
> start-stop-daemon, используя "start-daemon --make-pidfile". В этом
> случае pidfile будет создаваться и удаляться вне tor.
> 3. перепилить tor так, чтобы pidfile создавался до смены pid/gid?
> 4. ???
> 
> Внутреннее чутье и природная лень мне предлагают вариант 1 :), а какой
> является наиболее кошерным?
> 
IMHO вариант 2.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2005-07-13  9:11 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-13  8:53 Sviatoslav Sviridov
2005-07-13  9:11 ` Ivan Fedorov [this message]
2005-07-13  9:36   ` Andrei Bulava
2005-07-13 10:01     ` Ivan Fedorov
2005-07-13  9:32 ` Andrei Bulava
2005-07-13  9:52   ` Sviatoslav Sviridov
2005-07-13 10:10     ` Andrei Bulava
2005-07-13 15:33       ` Sviatoslav Sviridov

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=42D4DABC.1080009@altlinux.ru \
    --to=ns@altlinux.ru \
    --cc=devel@altlinux.ru \
    /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