Diff
Not logged in

Differences From Artifact [c2c3e866b0]:

To Artifact [e599101b46]:


475
476
477
478
479
480
481

482



483
484
485
486
487
488
489
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493







+

+
+
+







            print >>sys.stderr, "VM is not running in snapshot mode"
            sys.exit(1)

def cmd_autostart(options):
    """
    Starts all VMs which are in the autostart directory
    """
    import pwd
    dirname =  config.get("directories", "AutostartVMs")
    os.seteuid(pwd.getpwnam(
                            config.get("permissions","autostart_user")
                            ).pw_uid)
    if not os.access(dirname,os.R_OK):
        return 
    for name in os.listdir(dirname):
        if not os.access(os.path.join(dirname,name,"start"), os.X_OK):
            continue
        machine_dir = os.path.join(dirname,name)
        sock = connect_vm(machine_dir)