Quoting Sukadev Bhattiprolu (sukadev@xxxxxxxxxxxxxxxxxx): > >>>> 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 I don't mount ns cgroup, so no, not on my system. > 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@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/containers