sysstat was starting too late to understand the state of the system
when services didn't start. Move it to earlier.
Change-Id: Iaf8e72c441dbdf943f7f25ea3f0fc568138a178f
| ... | ... |
@@ -410,7 +410,6 @@ FLAT_INTERFACE=${FLAT_INTERFACE-$GUEST_INTERFACE_DEFAULT}
|
| 410 | 410 |
|
| 411 | 411 |
## FIXME(ja): should/can we check that FLAT_INTERFACE is sane? |
| 412 | 412 |
|
| 413 |
- |
|
| 414 | 413 |
# Database Configuration |
| 415 | 414 |
# ---------------------- |
| 416 | 415 |
|
| ... | ... |
@@ -845,6 +844,18 @@ screen -r $SCREEN_NAME -X hardstatus alwayslastline "$SCREEN_HARDSTATUS" |
| 845 | 845 |
# Initialize the directory for service status check |
| 846 | 846 |
init_service_check |
| 847 | 847 |
|
| 848 |
+# Kick off Sysstat |
|
| 849 |
+# ------------------------ |
|
| 850 |
+# run sysstat if it is enabled, this has to be early as daemon |
|
| 851 |
+# startup is one of the things to track. |
|
| 852 |
+if is_service_enabled sysstat;then |
|
| 853 |
+ if [[ -n ${SCREEN_LOGDIR} ]]; then
|
|
| 854 |
+ screen_it sysstat "sar -o $SCREEN_LOGDIR/$SYSSTAT_FILE $SYSSTAT_INTERVAL" |
|
| 855 |
+ else |
|
| 856 |
+ screen_it sysstat "sar $SYSSTAT_INTERVAL" |
|
| 857 |
+ fi |
|
| 858 |
+fi |
|
| 859 |
+ |
|
| 848 | 860 |
# Keystone |
| 849 | 861 |
# -------- |
| 850 | 862 |
|
| ... | ... |
@@ -1275,14 +1286,6 @@ if is_service_enabled nova && is_baremetal; then |
| 1275 | 1275 |
screen_it baremetal "nova-baremetal-deploy-helper" |
| 1276 | 1276 |
fi |
| 1277 | 1277 |
|
| 1278 |
-# run sysstat if it is enabled |
|
| 1279 |
-if is_service_enabled sysstat;then |
|
| 1280 |
- if [[ -n ${SCREEN_LOGDIR} ]]; then
|
|
| 1281 |
- screen_it sysstat "sar -o $SCREEN_LOGDIR/$SYSSTAT_FILE $SYSSTAT_INTERVAL" |
|
| 1282 |
- else |
|
| 1283 |
- screen_it sysstat "sar $SYSSTAT_INTERVAL" |
|
| 1284 |
- fi |
|
| 1285 |
-fi |
|
| 1286 | 1278 |
|
| 1287 | 1279 |
# Save some values we generated for later use |
| 1288 | 1280 |
CURRENT_RUN_TIME=$(date "+$TIMESTAMP_FORMAT") |