Changes

Jump to navigation Jump to search
335 bytes added ,  04:30, 5 August 2022
m
→‎set service address: apply documentation change proposed in https://github.com/checkpoint-restore/criu/issues/1954
Line 17: Line 17:  
=== set service address ===
 
=== set service address ===
   −
Use <code>void criu_set_service_address(char *address)</code> to specify path to a CRIU service socket. Call it with NULL to make libcriu use the default address (currently <code>/var/run/criu_service.socket</code>).
+
Use <code>void criu_set_service_address(char *address)</code> to specify path to a CRIU service socket. Call it with NULL to make libcriu use the default address (currently <code>criu_service.socket</code> in the local directory). Note that a CRIU service must be running at that address for the C API to work; you cannot use the C API standalone. To start a CRIU service, run <code>criu service --address /path/to/criu_service.socket</code>. The path given in this command is the path that needs to be passed to <code>criu_set_service_address</code>.
    
=== set dump/restore options ===
 
=== set dump/restore options ===
277

edits

Navigation menu