[gentoo-user] Dynamic service runlevel

2013-11-10 Thread 颜林林
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


Re: [gentoo-user] Dynamic service runlevel

2013-11-10 Thread Dan Johansson
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, 
***
This message is printed on 100% recycled electrons!
***


0x2FB894AD.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Dynamic service runlevel

2013-11-12 Thread 颜林林
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  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, 
> ***
> This message is printed on 100% recycled electrons!
> ***



Re: [gentoo-user] Dynamic service runlevel

2013-11-13 Thread Dan Johansson
On 13.11.2013 06:22, Linlin Yan (颜林林) wrote:
> 
> On Sun, Nov 10, 2013 at 6:00 PM, Dan Johansson  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, 
***
This message is printed on 100% recycled electrons!
***


0x2FB894AD.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature