Changes

426 bytes removed ,  22:09, 10 April 2020
m
→‎Client: update RPC examples path
Line 235: Line 235:  
; -v[N]
 
; -v[N]
 
: sets the log level
 
: sets the log level
  −
==== systemd ====
  −
  −
If you are running systemd, you can make service start and operate automatically. First do
  −
  −
make install
  −
  −
to make files <code>criu.service</code> and <code>criu.socket</code> appear in systemd configs (<code>/lib/systemd/system/</code>).
  −
  −
Then run
  −
  −
systemctl start criu.socket
  −
  −
to get /var/run/criu-service.socket, and
  −
  −
systemctl enable criu.socket
  −
  −
to make <code>/var/run/criu-service.socket</code> available at boot.
      
=== Client ===
 
=== Client ===
    
Client, in its turn, must connect to service socket, send <code>criu_req</code> with request in it, and wait for a <code>criu_resp</code> with response.
 
Client, in its turn, must connect to service socket, send <code>criu_req</code> with request in it, and wait for a <code>criu_resp</code> with response.
You can find examples of client programs in C and Python in test/rpc/.
+
You can find examples of client programs in C and Python in test/others/rpc/.
    
With RPC facilities one can perform a [[self dump]].
 
With RPC facilities one can perform a [[self dump]].
Line 264: Line 246:     
== See also ==
 
== See also ==
 
+
* [[CLI]]
 
* [[C API]]
 
* [[C API]]
    
[[Category: API]]
 
[[Category: API]]
9

edits