Skip to content

Instantly share code, notes, and snippets.

@hughsaunders
Created February 5, 2013 11:08
Show Gist options
  • Save hughsaunders/4713772 to your computer and use it in GitHub Desktop.
Save hughsaunders/4713772 to your computer and use it in GitHub Desktop.
nova upstart job
root@allinone:/var/log/nova# cat /etc/init/nova-compute.conf
description "Nova compute worker"
author "Soren Hansen <[email protected]>"
start on runlevel [2345]
stop on runlevel [016]
chdir /var/run
pre-start script
mkdir -p /var/run/nova
chown nova:root /var/run/nova/
mkdir -p /var/lock/nova
chown nova:root /var/lock/nova/
modprobe nbd
end script
#exec su -s /bin/sh -c "exec nova-compute --config-file=/etc/nova/nova.conf --config-file=/etc/nova/nova-compute.conf" nova
exec su -s /bin/sh -c "exec nova-compute --config-file=/etc/nova/nova.conf --config-file=/etc/nova/nova-compute.conf"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment