move sysstat earlier (but not too early)

sysstat was starting too late to understand the state of the system
when services didn't start. Move it to earlier.

Change-Id: Iaf8e72c441dbdf943f7f25ea3f0fc568138a178f
diff --git a/stack.sh b/stack.sh
index 7d43278..a4106e5 100755
--- a/stack.sh
+++ b/stack.sh
@@ -410,7 +410,6 @@
 
 ## FIXME(ja): should/can we check that FLAT_INTERFACE is sane?
 
-
 # Database Configuration
 # ----------------------
 
@@ -845,6 +844,18 @@
 # Initialize the directory for service status check
 init_service_check
 
+# Kick off Sysstat
+# ------------------------
+# run sysstat if it is enabled, this has to be early as daemon
+# startup is one of the things to track.
+if is_service_enabled sysstat;then
+    if [[ -n ${SCREEN_LOGDIR} ]]; then
+        screen_it sysstat "sar -o $SCREEN_LOGDIR/$SYSSTAT_FILE $SYSSTAT_INTERVAL"
+    else
+        screen_it sysstat "sar $SYSSTAT_INTERVAL"
+    fi
+fi
+
 # Keystone
 # --------
 
@@ -1275,14 +1286,6 @@
     screen_it baremetal "nova-baremetal-deploy-helper"
 fi
 
-# run sysstat if it is enabled
-if is_service_enabled sysstat;then
-    if [[ -n ${SCREEN_LOGDIR} ]]; then
-        screen_it sysstat "sar -o $SCREEN_LOGDIR/$SYSSTAT_FILE $SYSSTAT_INTERVAL"
-    else
-        screen_it sysstat "sar $SYSSTAT_INTERVAL"
-    fi
-fi
 
 # Save some values we generated for later use
 CURRENT_RUN_TIME=$(date "+$TIMESTAMP_FORMAT")