public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Dynamic service runlevel
@ 2013-11-10  8:20 Linlin Yan (颜林林)
  2013-11-10 10:00 ` Dan Johansson
  0 siblings, 1 reply; 4+ messages in thread
From: Linlin Yan (颜林林) @ 2013-11-10  8:20 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

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

Hi geeks,

Is it possible to set dynamic service run-level (rc-update) according to
different kernel version.

There are different kernel versions in my grub menu, and I need to switch
between these versions for development purpose. I currently want to disable
some services under specific kernel version., but I cannot find where to
customize this. Any suggestion?

Best wishes!
Linlin

[-- Attachment #2: Type: text/html, Size: 495 bytes --]

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

* Re: [gentoo-user] Dynamic service runlevel
  2013-11-10  8:20 [gentoo-user] Dynamic service runlevel Linlin Yan (颜林林)
@ 2013-11-10 10:00 ` Dan Johansson
  2013-11-13  5:22   ` Linlin Yan (颜林林)
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Johansson @ 2013-11-10 10:00 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 922 bytes --]

On 10.11.2013 09:20, Linlin Yan (颜林林) wrote:
> Is it possible to set dynamic service run-level (rc-update) according to
> different kernel version.
> 
> There are different kernel versions in my grub menu, and I need to switch
> between these versions for development purpose. I currently want to disable
> some services under specific kernel version., but I cannot find where to
> customize this. Any suggestion?

What I have done is to have two different runlevels (default and kde in
my case) with different services added to each one (the kde runlevel
starts X, kde, and som other stuff that I do not have in the default
level). Then I have added "softlevel=kde" to the parameters for the kernel.

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #1.2: 0x2FB894AD.asc --]
[-- Type: application/pgp-keys, Size: 3477 bytes --]

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

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

* Re: [gentoo-user] Dynamic service runlevel
  2013-11-10 10:00 ` Dan Johansson
@ 2013-11-13  5:22   ` Linlin Yan (颜林林)
  2013-11-13 17:32     ` Dan Johansson
  0 siblings, 1 reply; 4+ messages in thread
From: Linlin Yan (颜林林) @ 2013-11-13  5:22 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org

Hi Dan,

Thank you very much! That is very helpful.

What if I want to change the behaviour of "sysinit" runlevel? Where
can I change it to another new runlevel for specific kernel version?

BTW, the services I want to disable is udev{,-mount} for kernel-2.16.31.

Linlin

On Sun, Nov 10, 2013 at 6:00 PM, Dan Johansson <Dan.Johansson@dmj.nu> wrote:
> On 10.11.2013 09:20, Linlin Yan (颜林林) wrote:
>> Is it possible to set dynamic service run-level (rc-update) according to
>> different kernel version.
>>
>> There are different kernel versions in my grub menu, and I need to switch
>> between these versions for development purpose. I currently want to disable
>> some services under specific kernel version., but I cannot find where to
>> customize this. Any suggestion?
>
> What I have done is to have two different runlevels (default and kde in
> my case) with different services added to each one (the kde runlevel
> starts X, kde, and som other stuff that I do not have in the default
> level). Then I have added "softlevel=kde" to the parameters for the kernel.
>
> --
> Dan Johansson, <http://www.dmj.nu>
> ***************************************************
> This message is printed on 100% recycled electrons!
> ***************************************************


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

* Re: [gentoo-user] Dynamic service runlevel
  2013-11-13  5:22   ` Linlin Yan (颜林林)
@ 2013-11-13 17:32     ` Dan Johansson
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Johansson @ 2013-11-13 17:32 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1: Type: text/plain, Size: 1409 bytes --]

On 13.11.2013 06:22, Linlin Yan (颜林林) wrote:
> 
> On Sun, Nov 10, 2013 at 6:00 PM, Dan Johansson <Dan.Johansson@dmj.nu> wrote:
>> On 10.11.2013 09:20, Linlin Yan (颜林林) wrote:
>>> Is it possible to set dynamic service run-level (rc-update) according to
>>> different kernel version.
>>>
>>> There are different kernel versions in my grub menu, and I need to switch
>>> between these versions for development purpose. I currently want to disable
>>> some services under specific kernel version., but I cannot find where to
>>> customize this. Any suggestion?
>>
>> What I have done is to have two different runlevels (default and kde in
>> my case) with different services added to each one (the kde runlevel
>> starts X, kde, and som other stuff that I do not have in the default
>> level). Then I have added "softlevel=kde" to the parameters for the kernel.
> Hi Dan,
>
> Thank you very much! That is very helpful.
>
> What if I want to change the behaviour of "sysinit" runlevel? Where
> can I change it to another new runlevel for specific kernel version?
>
> BTW, the services I want to disable is udev{,-mount} for kernel-2.16.31.

Sorry, I can not help you there.

-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************

[-- Attachment #1.2: 0x2FB894AD.asc --]
[-- Type: application/pgp-keys, Size: 3477 bytes --]

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

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

end of thread, other threads:[~2013-11-13 17:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-10  8:20 [gentoo-user] Dynamic service runlevel Linlin Yan (颜林林)
2013-11-10 10:00 ` Dan Johansson
2013-11-13  5:22   ` Linlin Yan (颜林林)
2013-11-13 17:32     ` Dan Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox