CLOUDSTACK-7851:MS does not start after the VM it is running on is rebooted
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/131c2f20 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/131c2f20 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/131c2f20 Branch: refs/heads/statscollector-graphite Commit: 131c2f2014f69685b200b5304be88d9b1da3a2c9 Parents: 991d783 Author: Damodar <damoder.re...@citrix.com> Authored: Thu Nov 6 12:04:30 2014 +0530 Committer: Kishan Kavala <kis...@apache.org> Committed: Mon Nov 10 14:31:43 2014 +0530 ---------------------------------------------------------------------- packaging/centos63/cloud-management.rc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/131c2f20/packaging/centos63/cloud-management.rc ---------------------------------------------------------------------- diff --git a/packaging/centos63/cloud-management.rc b/packaging/centos63/cloud-management.rc index eaabd30..6d28748 100755 --- a/packaging/centos63/cloud-management.rc +++ b/packaging/centos63/cloud-management.rc @@ -87,7 +87,8 @@ handle_pid_file() { } start() { - source $(dirname $0)/tomcat.sh + readpath=$(readlink -f $0) + source `dirname $readpath`/tomcat.sh } # See how we were called.