ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Странное поведение chkconfig
@ 2008-06-01 15:50 Alexei V. Mezin
  2008-06-01 16:09 ` Led
  0 siblings, 1 reply; 6+ messages in thread
From: Alexei V. Mezin @ 2008-06-01 15:50 UTC (permalink / raw)
  To: sisyphus


Чудеса какие-то!

Смотрим в сервис dm:

[root@threebears ~]# grep chkconfig /etc/rc.d/init.d/dm
# chkconfig: 5 45 05

Сервис должен стартовать только в 5 ранлевеле.

[root@threebears ~]# chkconfig dm off
[root@threebears ~]# chkconfig dm on
[root@threebears ~]# chkconfig --list dm
dm              0:выкл  1:выкл  2:вкл   3:вкл   4:вкл   5:вкл   6:выкл

И почему он получается включенным в 2-4 ранлевелах?



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

* Re: [sisyphus] Странное поведение chkconfig
  2008-06-01 15:50 [sisyphus] Странное поведение chkconfig Alexei V. Mezin
@ 2008-06-01 16:09 ` Led
  2008-06-01 16:22   ` Alexei V. Mezin
  0 siblings, 1 reply; 6+ messages in thread
From: Led @ 2008-06-01 16:09 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

Sunday, 01 June 2008 18:50:19 Alexei V. Mezin написав:
> Чудеса какие-то!
>
> Смотрим в сервис dm:
>
> [root@threebears ~]# grep chkconfig /etc/rc.d/init.d/dm
> # chkconfig: 5 45 05
>
> Сервис должен стартовать только в 5 ранлевеле.
>
> [root@threebears ~]# chkconfig dm off
> [root@threebears ~]# chkconfig dm on
> [root@threebears ~]# chkconfig --list dm
> dm              0:выкл  1:выкл  2:вкл   3:вкл   4:вкл   5:вкл   6:выкл
>
> И почему он получается включенным в 2-4 ранлевелах?

man chkconfig
.....
By default, the on and off options affect only runlevels 2, 3, 4, and 5....
.....

-- 
Led

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

* Re: [sisyphus] Странное поведение chkconfig
  2008-06-01 16:09 ` Led
@ 2008-06-01 16:22   ` Alexei V. Mezin
  2008-06-01 16:30     ` Alexei V. Mezin
  0 siblings, 1 reply; 6+ messages in thread
From: Alexei V. Mezin @ 2008-06-01 16:22 UTC (permalink / raw)
  To: sisyphus

Led пишет:

>> [root@threebears ~]# chkconfig dm off
>> [root@threebears ~]# chkconfig dm on
>> [root@threebears ~]# chkconfig --list dm
>> dm              0:выкл  1:выкл  2:вкл   3:вкл   4:вкл   5:вкл   6:выкл
>>
>> И почему он получается включенным в 2-4 ранлевелах?
> 
> man chkconfig

А в какой именно части мана написано? А то читаю там:

For example, random.init has these three lines:
        # chkconfig: 2345 20 80
        # description: Saves and restores system entropy pool for \
        #              higher quality random number generation.
        This says that the random script should be started in levels 2, 
  3,  4,
        and 5

У dm написано "стартовать только в 5", а получается 2345.



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

* Re: [sisyphus] Странное поведение chkconfig
  2008-06-01 16:22   ` Alexei V. Mezin
@ 2008-06-01 16:30     ` Alexei V. Mezin
  2008-06-01 18:22       ` Michael Shigorin
  0 siblings, 1 reply; 6+ messages in thread
From: Alexei V. Mezin @ 2008-06-01 16:30 UTC (permalink / raw)
  To: sisyphus

Alexei V. Mezin пишет:

> А в какой именно части мана написано? А то читаю там:
> 

Да, нашел, про reset написано. И почему мне раньше казалось, что on/off 
тоже учитывают указанные в файле значения?



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

* Re: [sisyphus] Странное поведение chkconfig
  2008-06-01 16:30     ` Alexei V. Mezin
@ 2008-06-01 18:22       ` Michael Shigorin
  2008-06-01 18:58         ` Alexey I. Froloff
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Shigorin @ 2008-06-01 18:22 UTC (permalink / raw)
  To: sisyphus

On Sun, Jun 01, 2008 at 08:30:35PM +0400, Alexei V. Mezin wrote:
> >А в какой именно части мана написано? А то читаю там:
> Да, нашел, про reset написано. И почему мне раньше казалось,
> что on/off тоже учитывают указанные в файле значения?

Кажется, это всё-таки про --add/--del.  Но не про on/off.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


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

* Re: [sisyphus] Странное поведение chkconfig
  2008-06-01 18:22       ` Michael Shigorin
@ 2008-06-01 18:58         ` Alexey I. Froloff
  0 siblings, 0 replies; 6+ messages in thread
From: Alexey I. Froloff @ 2008-06-01 18:58 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

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

* Michael Shigorin <mike@> [080601 22:25]:
> > >А в какой именно части мана написано? А то читаю там:
> > Да, нашел, про reset написано. И почему мне раньше казалось,
> > что on/off тоже учитывают указанные в файле значения?
> Кажется, это всё-таки про --add/--del.  Но не про on/off.
Не кажется, а именно так оно и есть.  В случае "off by default" в
это поле ставят "-".

-- 
Regards,
Sir Raorn.

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

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

end of thread, other threads:[~2008-06-01 18:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-01 15:50 [sisyphus] Странное поведение chkconfig Alexei V. Mezin
2008-06-01 16:09 ` Led
2008-06-01 16:22   ` Alexei V. Mezin
2008-06-01 16:30     ` Alexei V. Mezin
2008-06-01 18:22       ` Michael Shigorin
2008-06-01 18:58         ` Alexey I. Froloff

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