Differences From Artifact [c2c3e866b0]:
- Executable file vws — part of check-in [d72aaf8da4] at 2016-04-14 19:56:21 on branch trunk — Added display of privare/public status and spice url to vws list command. Fixes 96cc307ed7 (user: vitus, size: 31727) [annotate] [blame] [check-ins using]
To Artifact [e599101b46]:
- Executable file vws — part of check-in [57c08957e3] at 2016-04-14 20:10:42 on branch trunk — documented permission setction of config file. Make autostart_user option work (user: vitus, size: 31880) [annotate] [blame] [check-ins using]
| ︙ | |||
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)
|
| ︙ |