[openstack-nova] openstack-nova-db-setup: enable mysqld startup at boot
Pádraig Brady
pbrady at fedoraproject.org
Fri Jan 20 16:11:54 UTC 2012
commit 790dcfc7b4f03d361d13395d07546b02cd33a645
Author: Pádraig Brady <P at draigBrady.com>
Date: Fri Jan 20 16:09:53 2012 +0000
openstack-nova-db-setup: enable mysqld startup at boot
If we both installed and started mysqld,
then ensure it starts at boot.
openstack-nova-db-setup | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/openstack-nova-db-setup b/openstack-nova-db-setup
index 1c5a3a5..7530af0 100755
--- a/openstack-nova-db-setup
+++ b/openstack-nova-db-setup
@@ -143,6 +143,9 @@ then
fi
start_mysql_server
+
+ # If we both installed and started, ensure it starts at boot
+ [ $NEW_MYSQL_INSTALL -eq 1 ] && chkconfig mysqld on
fi
More information about the scm-commits
mailing list