I think the current pid(from postlogin script) is sufficient if the imap binary will be a child process. The cgroup is inherited from parent process (at least the kernel documentation says that)...
Emerson Pinter On 30-01-2011 14:10, Timo Sirainen wrote: > On Sun, 2011-01-30 at 17:03 +0100, Andreas Pelme wrote: >> On 30 jan 2011, at 16:05, Emerson Pinter wrote: >>> Have you tried post login scripts ? >> >> Wow, I had missed the post login scripts. That will solve this problem very >> nicely! > > Hmm. With v1.x it works, but in v2.0 the post-login scripts are run in a > separate process and I don't think you can get the PID there without > some changes to code.. > >
