ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Slava Semushin" <slava.semushin@gmail.com>
To: "ALT Linux Team development discussions" <devel@lists.altlinux.org>
Subject: Re: [devel] Покритикуйте init-скрипт
Date: Thu, 1 Nov 2007 17:02:55 +0600
Message-ID: <75e139a00711010402k5309f1a3wd73c4618030947d7@mail.gmail.com> (raw)
In-Reply-To: <m3y7ditf92.fsf@vvk.distance.ru>

01.11.07, Vladimir V. Kamarzin<vvk / altlinux.ru> написал(а):
> >>>>> On 31 Oct 2007 at 15:50 "SS" == Slava Semushin writes:
>
>  SS> Я когда этот инитскрипт отлаживал столкнулся с проблемой: инит скрипт
>  SS> тихо отрабатывал ничег не делая. И только sh -x и RTFS помогли понять,
>  SS> что путь к демону должен быть абсолютным, иначе ф-ция start_daemon не
>  SS> сможет его запустить.
>
> Это не так.

Заразился от wrar@'а говорить однострочниками? :) Объясни, почему не
так. Я буквально недавно на это наступал.

Вот код (/etc/init.d/functions из service-0.5.14-alt1):

 95 start_daemon()
 96 {
 [skip]
 169 # We need the absolute pathname.
170     if [ -z "$1" ]; then
171         msg_usage "start_daemon [options]... {program}..."
172         return 1
173     fi
174     WHICH="$(absolute "$1")" || return 1
175     [ -n "$CMDNAME" ] &&
176         BASENAME="$(basename "$CMDNAME")" ||
177         BASENAME="$(basename "$1")" || return 1
178     shift

Где-то здесь у меня и вылетало по-тихому...


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

  reply	other threads:[~2007-11-01 11:02 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-31 10:22 Slava Semushin
2007-10-31 10:27 ` Avramenko Andrew
2007-10-31 10:50   ` Slava Semushin
2007-10-31 11:16     ` Avramenko Andrew
2007-11-01 10:46     ` Vladimir V. Kamarzin
2007-11-01 11:02       ` Slava Semushin [this message]
2007-11-01 12:14         ` Dmitry V. Levin
2007-11-01 12:19           ` Slava Semushin
2007-11-01 12:28             ` Dmitry V. Levin
2007-11-01 12:36               ` Slava Semushin
2007-11-01 13:46                 ` Dmitry V. Levin
2007-11-02 10:17               ` Slava Semushin
2007-10-31 11:08 ` Alexey I. Froloff
2007-11-01 12:26 ` Dmitry V. Levin

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=75e139a00711010402k5309f1a3wd73c4618030947d7@mail.gmail.com \
    --to=slava.semushin@gmail.com \
    --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