ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] вопросы по init
@ 2006-11-02 16:02 Igor Vlasenko
  2006-11-02 16:34 ` Dmitry V. Levin
  2006-11-02 21:04 ` Денис Смирнов
  0 siblings, 2 replies; 5+ messages in thread
From: Igor Vlasenko @ 2006-11-02 16:02 UTC (permalink / raw)
  To: ALT Devel discussion list

вдогонку к 
http://lists.altlinux.org/pipermail/devel/2006-November/038198.html
еще вопрос. 
Я вот хочу смешать в initscript 2 заголовка :
LSB (service >=0.59) и compat chkconfig.
Пример ниже.
Это допустимо?

### BEGIN INIT INFO
# Provides:          festival
# Required-Start:    $syslog $remote_fs sound
# Should-Start:      $time
# Required-Stop:     $syslog $remote_fs sound
# Should-Stop:       $time
# Default-Start:     3 5
# Default-Stop:      0 1 2 6
# Short-Description: festival daemon providing full text-to-speech system
# Description:       Start festival to allow applications to access a
#	text-to-speech system with various APIs, as well as an environment
#	for development and research of speech synthesis techniques. It is
#	written in C++ and has a Scheme-based command interpreter for
#	general control. 
### END INIT INFO
# compatible chkconfig entry (to allow backports)
#
# chkconfig: 35 64 36
# description: festival daemon providing full text-to-speech system
#
# processname: festival
# config: /etc/festival/server.scm
# pidfile: /var/run/festival.pid


-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine




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

* Re: [devel] вопросы по init
  2006-11-02 16:02 [devel] вопросы по init Igor Vlasenko
@ 2006-11-02 16:34 ` Dmitry V. Levin
  2006-11-02 17:19   ` Igor Vlasenko
  2006-11-02 21:04 ` Денис Смирнов
  1 sibling, 1 reply; 5+ messages in thread
From: Dmitry V. Levin @ 2006-11-02 16:34 UTC (permalink / raw)
  To: ALT Devel discussion list

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

On Thu, Nov 02, 2006 at 06:02:10PM +0200, Igor Vlasenko wrote:
> вдогонку к 
> http://lists.altlinux.org/pipermail/devel/2006-November/038198.html
> еще вопрос. 
> Я вот хочу смешать в initscript 2 заголовка :
> LSB (service >=0.59) и compat chkconfig.
> Пример ниже.
> Это допустимо?

Это допустимо, но бесполезно, поскольку chkconfig использует тот тип
заголовка, который найдёт первым.


-- 
ldv

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

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

* Re: [devel] вопросы по init
  2006-11-02 16:34 ` Dmitry V. Levin
@ 2006-11-02 17:19   ` Igor Vlasenko
  0 siblings, 0 replies; 5+ messages in thread
From: Igor Vlasenko @ 2006-11-02 17:19 UTC (permalink / raw)
  To: ALT Devel discussion list

>> Пример ниже.
>> Это допустимо?

>Это допустимо, но бесполезно, поскольку chkconfig использует тот тип
>заголовка, который найдёт первым.

Спасибо! как раз не бесполезно.
Это какерство лично для моего удобства, 
поскольку я еще на М30, где LSB init нет,
и мне хочется и прогрессивно, и с совместимостью, чтобы работало в М30.
Тогда получилось.

А по поводу initscripts right way
http://lists.altlinux.org/pipermail/devel/2006-November/038198.html
не посоветуете как лучше поступить?
IMHO, было бы полезное разъяснение, даже и на wiki выложить.

-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine






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

* Re: [devel] вопросы по init
  2006-11-02 16:02 [devel] вопросы по init Igor Vlasenko
  2006-11-02 16:34 ` Dmitry V. Levin
@ 2006-11-02 21:04 ` Денис Смирнов
  2006-11-03 19:24   ` Igor Vlasenko
  1 sibling, 1 reply; 5+ messages in thread
From: Денис Смирнов @ 2006-11-02 21:04 UTC (permalink / raw)
  To: devel

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

On Thu, Nov 02, 2006 at 06:02:10PM +0200, Igor Vlasenko wrote:

IV> Я вот хочу смешать в initscript 2 заголовка :
IV> LSB (service >=0.59) и compat chkconfig.
IV> ### BEGIN INIT INFO
IV> # Provides:          festival
IV> # Required-Start:    $syslog $remote_fs sound
IV> # Should-Start:      $time
IV> # Required-Stop:     $syslog $remote_fs sound
IV> # Should-Stop:       $time
IV> # Default-Start:     3 5
IV> # Default-Stop:      0 1 2 6

Опаньки. А где это документировано? Мне этого больше всего при написании
инитскриптов не хватало.

-- 
С уважением, Денис

http://freesource.info
----------------------------------------------------------------------------
Кто-то что-то не понял, и этот кто-то явно не я. :)
		-- ldv in devel@

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

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

* Re: [devel] вопросы по init
  2006-11-02 21:04 ` Денис Смирнов
@ 2006-11-03 19:24   ` Igor Vlasenko
  0 siblings, 0 replies; 5+ messages in thread
From: Igor Vlasenko @ 2006-11-03 19:24 UTC (permalink / raw)
  To: ALT Devel discussion list

On Fri, 3 Nov 2006, Денис Смирнов wrote:

> On Thu, Nov 02, 2006 at 06:02:10PM +0200, Igor Vlasenko wrote:

IV> Я вот хочу смешать в initscript 2 заголовка :
IV> LSB (service >=0.59) и compat chkconfig.
IV> ### BEGIN INIT INFO
> Опаньки. А где это документировано? Мне этого больше всего при написании
> инитскриптов не хватало.

www.freestandards.org,
google://LSB+init

Спасибо всем за ответы!
-- 

Dr. Igor Vlasenko
--------------------
Topology Department
Institute of Math
Kiev, Ukraine




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

end of thread, other threads:[~2006-11-03 19:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-02 16:02 [devel] вопросы по init Igor Vlasenko
2006-11-02 16:34 ` Dmitry V. Levin
2006-11-02 17:19   ` Igor Vlasenko
2006-11-02 21:04 ` Денис Смирнов
2006-11-03 19:24   ` Igor Vlasenko

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