[Devel] Re: --freezer option to /bin/restart

Sukadev Bhattiprolu sukadev at linux.vnet.ibm.com
Mon Mar 29 12:56:37 PDT 2010


>>>> Is there a way to specify that the restarted application belong
>>>> to a new (yet-to-be created) cgroup AND to leave the application
>>>> FROZEN after restart ? Or would we need a new command line option
>>>> and field in 'struct app_restart_args' to specify this ?
>>> This is exactly what --freezer does. Well, alsmot - except for
>>> "yet-to-be created". Do you want 'restart' to create the cgroup
>>> if it doesn't exist ?

If we restart with one of the CLONE_NEW flags like CLONE_NEWPID, a
new cgroup is automatically created right ? So, in effect, all I want
at this point is to be able to leave the restarted application in the
FROZEN state (ie specify the RESTART_FROZEN flag to sys_restart()).

>>
>> I thought that was what Suka was asking for.
>
> If he wants to add it to the 'restart' utility, then sure, with
> a proper argument.

Ok. Will add a new field to struct app_restart_args to pass the
RESTART_FROZEN flag to sys_restart(). We can then either add -F option
or allow --freezer without argument to choose this behavior.
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list