1. add --skip-in-flight and --enable-external-masters options
For nginx service, it has a mount point in /run/user
which was used by pam_systemd to store non-essential
runtime files or objects(check more info in pam_systemd manpage).
To support dumpping such a mount point, criu needs enable
--enable-external-masters.
For in flight connections, we simply drop it.
2. restore pid file after restore from systemd
When I use systemd to restore nginx service,
I find that systemd will check pid file and it will
timeout since no value can be found in pid file.
To slove this problem, nvwa will supply this value
for systemd.
Signed-off-by: anatasluo <luolongjuna@gmail.com>
Including following update:
1. do kexec load before criu dump
2. move nvwa socket from tmp to run
3. kexec add x
4. move pin tool from tools to tools/pin
Signed-off-by: anatasluo <luolongjuna@gmail.com>