Reclaim disk space from /tmp caused by long running mysql daemon

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/e8c0c8f8
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/e8c0c8f8
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/e8c0c8f8

Branch: refs/heads/master
Commit: e8c0c8f849a8b45e9a2625900e818a6af45bd198
Parents: c980003
Author: Rafael da Fonseca <[email protected]>
Authored: Fri Jun 26 01:16:05 2015 +0200
Committer: Rafael da Fonseca <[email protected]>
Committed: Fri Jun 26 01:16:05 2015 +0200

----------------------------------------------------------------------
 tools/travis/before_install.sh | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/e8c0c8f8/tools/travis/before_install.sh
----------------------------------------------------------------------
diff --git a/tools/travis/before_install.sh b/tools/travis/before_install.sh
index f875971..b90a099 100755
--- a/tools/travis/before_install.sh
+++ b/tools/travis/before_install.sh
@@ -70,6 +70,8 @@ sudo debconf-set-selections <<< 'mysql-server 
mysql-server/root_password passwor
 sudo debconf-set-selections <<< 'mysql-server mysql-server/root_password_again 
password your_password'
 sudo apt-get -q -y install mysql-server > /dev/null
 
+#Restart mysql if running to release deleted file locks on filesystem, if 
aready running
+sudo status mysql | grep start && sudo stop mysql
 sudo start mysql
 
 echo -e "\nInstalling Development tools: "

Reply via email to