31
Server / Re:Spouštění virtuálů při bootu bez roota
« kdy: 17. 06. 2016, 13:49:39 »Kód: [Vybrat]
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
su -c "/usr/bin/VBoxHeadless --startvm win-serv" r-c && su -c "/usr/bin/VBoxHeadless --startvm arch-serv" r-c
exit 0
Zle som to vybral, prikaz bol zadany dobre akurat sirka terminalu nebola dostatocna a doplnilo si tam co dpolnilo. Preto znova zadavam vystup.
Mal som tie prikazy pod sebou, ten druhy - pod nebralo.