[openstack-nova/el6] fix openstack-nova-db-setup to work on RHEL <= 6

Pádraig Brady pbrady at fedoraproject.org
Fri Dec 2 14:34:39 UTC 2011


commit 6e78e239661c54317235f8e45b8915f50970e515
Author: Pádraig Brady <P at draigBrady.com>
Date:   Fri Dec 2 14:33:05 2011 +0000

    fix openstack-nova-db-setup to work on RHEL <= 6
    
    This patch could be applied to all branches,
    but is only needed here.
    
    * openstack-nova-db-setup: s/systemctl/service/

 openstack-nova-db-setup |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/openstack-nova-db-setup b/openstack-nova-db-setup
index 961ccdc..cdb626a 100755
--- a/openstack-nova-db-setup
+++ b/openstack-nova-db-setup
@@ -68,13 +68,13 @@ fi
 
 # Make sure mysqld is running.
 
-if ! systemctl status mysqld.service > /dev/null
+if ! service mysqld status > /dev/null
 then
 	printf "mysqld is not running.  Would you like to start it now? (y/n): "
 	read response
 	case "$response" in
 		y|Y)
-			systemctl start mysqld.service
+			service mysqld start
 			;;
 		n|N)
 			echo "mysqld must be running.  Please start it before proceeding."


More information about the scm-commits mailing list