[CRIU] [PATCH] LOG_DIR_FD_OFF -> WORK_DIR_FD_OFF
Ruslan Kuprieiev
kupruser at gmail.com
Mon Nov 11 07:25:53 PST 2013
On 11.11.2013 15:13, Andrew Vagin wrote:
> On Mon, Nov 11, 2013 at 03:01:07PM +0400, Cyrill Gorcunov wrote:
>> On Mon, Nov 11, 2013 at 02:53:02PM +0400, Pavel Emelyanov wrote:
>>> * service/page-server --daemon
>>> g
>>> - images : -D, don't start if absent
>>> - logs : $opt-filename, don't start if not absolute
>>> - pidfiles: $opt-filename, don't start if not absolute
>> Why can't the logs/pidfiles be a relative to -D directory here?
>> Do we really need to require absolute path?
> You think like me :)
>
> But after a discussion I agree that we can have image dir for images
> and work dir for other files like logs, pid, stat???, etc.
>
> I think we need to add an option to customize work dir too.
Maybe for server/service use -D as "work dir" path, and add optional
argument "where to chdir" to -d? For example, if i want server/service
go daemon, put his logs/pidfiles to DIR1 and chdir to DIR2 i will use:
criu service -o logfile --pidfile pidfile -D DIR1 -d DIR2
More information about the CRIU
mailing list