def cli(rc, jails):
"""
Looks for the jail supplied and passes the uuid, path and configuration
location to start_jail.
"""
if not jails and not rc:
ioc_common.logit({
"level" : "EXCEPTION",
"message": 'Usage: iocage start [OPTIONS] JAILS...\n'
'\nError: Missing argument "jails".'
}, exit_on_error=True)
if rc:
ioc.IOCage(exit_on_error=True, rc=rc, silent=True).start()
else:
for jail in jails:
ioc.IOCage(exit_on_error=True, jail=jail, rc=rc).start()
评论列表
文章目录