* Restart a container
* @name : the name of the container being restarted
* @statefile: string object from which the container is restarted
- * @rcfile: container configuration file.
+ * @conf: lxc_conf structure.
* @flags : restart flags (an ORed value)
* Returns 0 on success, < 0 otherwise
*/
-extern int lxc_restart(const char *, const char *, const char *, int);
+extern int lxc_restart(const char *, const char *, struct lxc_conf *, int);
/*
* Returns the version number of the library
/*
* lxc: linux Container library
*
- * (C) Copyright IBM Corp. 2007, 2008
+ * (C) Copyright IBM Corp. 2007, 2010
*
* Authors:
* Daniel Lezcano <dlezcano at fr.ibm.com>
return ret;
ret = lxc_checkpoint(my_args.name, my_args.statefile, my_args.flags);
- if (ret) {
+ if (ret)
ERROR("failed to checkpoint '%s'", my_args.name);
- return ret;
- }
-
- INFO("'%s' checkpointed", my_args.name);
+ else
+ INFO("'%s' checkpointed", my_args.name);
return ret;
}
/*
* lxc: linux Container library
*
- * (C) Copyright IBM Corp. 2007, 2008
+ * (C) Copyright IBM Corp. 2007, 2010
*
* Authors:
* Daniel Lezcano <dlezcano at fr.ibm.com>
lxc_log_define(lxc_restart, lxc);
-int lxc_restart(const char *name, const char *statefile, const char *rcfile,
+int lxc_restart(const char *name, const char *statefile, struct lxc_conf *conf,
int flags)
{
return 0;