Ubuntu Pastebin

Paste from dave at Sat, 26 Dec 2015 14:54:10 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# zoidberg - service job file

description "Zoidberg VM"
author "me"

# Start the VM after network and filesystem

# When to stop the service

#start on (local-filesystems and net-device-up IFACE=eth0)

start on runlevel [2345]
stop on runlevel [016]

console output

respawn
respawn limit 5 10

pre-stop script
su dave -c “VBoxManage controlvm Zoidberg acpipowerbutton”
end script

exec su dave -c “VBoxHeadless –startvm Zoidberg”
Download as text