=== modified file 'debian/changelog'
--- debian/changelog	2011-09-21 21:50:52 +0000
+++ debian/changelog	2011-09-27 16:59:49 +0000
@@ -1,5 +1,11 @@
 nova (2012.1~e1~20110909.1546-0ubuntu0) UNRELEASED; urgency=low
 
+  [ Adam Gandelman ]
+  * debian/nova-common.postinst: Create 'nova' group, add user to it
+    (LP: #856530)
+  * debian/nova.conf, debian/nova-compute.upstart.in: Move reference of
+    nova-compute.conf from nova.conf to nova-compute's argv. (LP: #839796)
+
   [ Dan Prince ]
   * Fix dnsmasq line in nova_sudoers.
 

=== modified file 'debian/nova-common.postinst'
--- debian/nova-common.postinst	2011-08-11 11:27:36 +0000
+++ debian/nova-common.postinst	2011-09-27 16:59:49 +0000
@@ -1,16 +1,19 @@
 #!/bin/sh -e
 
 if [ "$1" = "configure" ]; then
+    if ! getent group nova > /dev/null 2>&1; then
+        addgroup --system nova >/dev/null
+    fi
     if ! getent passwd nova > /dev/null 2>&1; then
-        adduser --system --home /var/lib/nova --no-create-home --shell /bin/bash nova
+        adduser --system --home /var/lib/nova --ingroup nova --no-create-home --shell /bin/bash nova
     fi
-    chown -R nova:root /var/lib/nova/ /var/log/nova/ /etc/nova/nova.conf
+    chown -R nova:nova /var/lib/nova/ /var/log/nova/ /etc/nova/nova.conf
     chmod 600 /etc/nova/nova.conf
-	chmod 0440 /etc/sudoers.d/nova_sudoers
-	if ! grep -q sql_connection /etc/nova/nova.conf
-	then
-		su -c 'nova-manage db sync' nova
-	fi
+    chmod 0440 /etc/sudoers.d/nova_sudoers
+    if ! grep -q sql_connection /etc/nova/nova.conf
+    then
+      su -c 'nova-manage db sync' nova
+    fi
 fi
 
 #DEBHELPER#

=== modified file 'debian/nova-compute.upstart.in'
--- debian/nova-compute.upstart.in	2011-08-11 13:29:06 +0000
+++ debian/nova-compute.upstart.in	2011-09-27 16:59:49 +0000
@@ -17,4 +17,4 @@
 	modprobe nbd
 end script
 
-exec su -c "nova-compute --flagfile=/etc/nova/nova.conf" nova
+exec su -c "nova-compute --flagfile=/etc/nova/nova.conf --flagfile=/etc/nova/nova-compute.conf" nova

=== modified file 'debian/nova.conf'
--- debian/nova.conf	2011-09-02 17:21:29 +0000
+++ debian/nova.conf	2011-09-27 16:59:49 +0000
@@ -3,6 +3,5 @@
 --logdir=/var/log/nova
 --state_path=/var/lib/nova
 --lock_path=/var/lock/nova
---flagfile=/etc/nova/nova-compute.conf
 --use_deprecated_auth
 --verbose

